From 403f9bdda1a4bb83eefb4fc08e8be93df43ca893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ce=C4=BEuch?= Date: Fri, 14 Jun 2024 09:38:10 +0200 Subject: [PATCH] update notification encrpyted_message according to api description --- app/models/device.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/device.rb b/app/models/device.rb index 605829c..c9619b1 100644 --- a/app/models/device.rb +++ b/app/models/device.rb @@ -16,14 +16,14 @@ def notify(document_guid, document_encryption_key) # TODO: encrypt notifications # encrpyted_message = encrypt_message({ # document_guid: document_guid, - # key: document_encryption_key + # documentEncryptionKey: document_encryption_key # }.to_json, # pushkey # ) encrpyted_message = { document_guid: document_guid, - key: document_encryption_key + documentEncryptionKey: document_encryption_key }.to_json if ['ios', 'android'].include? platform