aboutsummaryrefslogtreecommitdiff
path: root/jobs/generated/banning.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 11:45:17 +0900
commite74de57832f684244d7da82fa743b63d459bf488 (patch)
tree363074591379ac1aa80af939a66b44c0ad2bff32 /jobs/generated/banning.cpp
parent21952d689db64bfb11e1cd11a7da802b649f9ae8 (diff)
downloadlibquotient-e74de57832f684244d7da82fa743b63d459bf488.tar.gz
libquotient-e74de57832f684244d7da82fa743b63d459bf488.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/banning.cpp')
-rw-r--r--jobs/generated/banning.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/jobs/generated/banning.cpp b/jobs/generated/banning.cpp
index 61677da6..96f80ea8 100644
--- a/jobs/generated/banning.cpp
+++ b/jobs/generated/banning.cpp
@@ -19,7 +19,7 @@ BanJob::BanJob(const QString& roomId, const QString& userId, const QString& reas
Query { }
)
{
- Data _data;
+ QJsonObject _data;
_data.insert("user_id", toJson(userId));
if (!reason.isEmpty())
_data.insert("reason", toJson(reason));
@@ -32,7 +32,7 @@ UnbanJob::UnbanJob(const QString& roomId, const QString& userId)
Query { }
)
{
- Data _data;
+ QJsonObject _data;
_data.insert("user_id", toJson(userId));
setRequestData(_data);
}