1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

fix: remove array merge for documents

This commit is contained in:
Torsten Dittmann 2022-05-10 14:20:51 +02:00
parent 04eeb8856c
commit 4e79d5fb67

View file

@ -151,9 +151,7 @@ class FunctionsV1 extends Worker
$function = Authorization::skip(fn () => $database->updateDocument(
'functions',
$function->getId(),
new Document(array_merge($function->getArrayCopy(), [
'scheduleNext' => (int)$next,
]))
$function->setAttribute('scheduleNext', (int) $next)
));
if ($function === false) {