From 4e79d5fb67df7db4d8a3b2b8bd02daefebbd7fd1 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Tue, 10 May 2022 14:20:51 +0200 Subject: [PATCH] fix: remove array merge for documents --- app/workers/functions.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/workers/functions.php b/app/workers/functions.php index 4f7413188f..1a6ae838b1 100644 --- a/app/workers/functions.php +++ b/app/workers/functions.php @@ -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) {