aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/to_device.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/to_device.cpp')
-rw-r--r--lib/csapi/to_device.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/csapi/to_device.cpp b/lib/csapi/to_device.cpp
index e893fa44..dfc47ab5 100644
--- a/lib/csapi/to_device.cpp
+++ b/lib/csapi/to_device.cpp
@@ -17,7 +17,7 @@ SendToDeviceJob::SendToDeviceJob(const QString& eventType, const QString& txnId,
basePath % "/sendToDevice/" % eventType % "/" % txnId)
{
QJsonObject _data;
- _data.insert("messages", toJson(messages));
+ addToJson<IfNotEmpty>(_data, "messages", messages);
setRequestData(_data);
}