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) {