Skip to content
Snippets Groups Projects
Verified Commit 0cf9504a authored by Damien's avatar Damien
Browse files

FEAT #14849 TIME 0:25 Fix update null entities

parent c1a5de3c
No related branches found
No related tags found
No related merge requests found
......@@ -241,6 +241,12 @@ class AlfrescoController
];
$account = json_encode($account);
EntityModel::update([
'set' => ['external_id' => "{}"],
'where' => ['id in (?)', 'external_id = ?'],
'data' => [$body['entities'], 'null']
]);
EntityModel::update([
'postSet' => ['external_id' => "jsonb_set(external_id, '{alfresco}', '{$account}')"],
'where' => ['id in (?)'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment