aboutsummaryrefslogtreecommitdiff
path: root/jobs/generated/kicking.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-12-06 21:21:27 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-12-07 12:35:51 +0900
commit80588a782ce702384802e3e0cb469f71e5640ef4 (patch)
tree9e98036483bca668a118d83c103c9f728757f7d5 /jobs/generated/kicking.cpp
parentc18b0c5be800a39898b6f6619209d1f96d022afa (diff)
downloadlibquotient-80588a782ce702384802e3e0cb469f71e5640ef4.tar.gz
libquotient-80588a782ce702384802e3e0cb469f71e5640ef4.zip
Make BaseJob::Data consume QByteArray as well, not only QJsonObject
This is needed to support cases of content-repo, where the request/response bodies are not JSON.
Diffstat (limited to 'jobs/generated/kicking.cpp')
-rw-r--r--jobs/generated/kicking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/jobs/generated/kicking.cpp b/jobs/generated/kicking.cpp
index 5d6f1a64..86dde629 100644
--- a/jobs/generated/kicking.cpp
+++ b/jobs/generated/kicking.cpp
@@ -19,7 +19,7 @@ KickJob::KickJob(const QString& roomId, const QString& userId, const QString& re
Query { }
)
{
- Data _data;
+ QJsonObject _data;
_data.insert("user_id", toJson(userId));
if (!reason.isEmpty())
_data.insert("reason", toJson(reason));