Service: Only sent item changes in item updates
This commit is contained in:
parent
cd64cbe08e
commit
b0792d32db
2 changed files with 2 additions and 2 deletions
|
|
@ -107,7 +107,7 @@ void Server::itemUpdated(ItemUpdateRequest update)
|
|||
{
|
||||
QJsonArray items;
|
||||
QJsonObject itemjson;
|
||||
update.payload.store(itemjson);
|
||||
update.payload.storeWithChanges(itemjson, update.changes);
|
||||
items.append(itemjson);
|
||||
QJsonObject json = createMessage("ItemUpdate", items);
|
||||
json["FullList"] = false;
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ void TcpClient::itemUpdated(ItemUpdateRequest update)
|
|||
{
|
||||
QJsonArray items;
|
||||
QJsonObject itemjson;
|
||||
update.payload.store(itemjson);
|
||||
update.payload.storeWithChanges(itemjson, update.changes);
|
||||
items.append(itemjson);
|
||||
QJsonObject json = createMessage("ItemUpdate", items);
|
||||
json["FullList"] = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue