1
0
Fork 0
mirror of synced 2024-10-03 19:53:33 +13:00

Inline update

This commit is contained in:
Jake Barnby 2024-01-15 19:31:42 +13:00
parent ce78d8c473
commit ae60089413
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -4,6 +4,7 @@ namespace Appwrite\Platform\Tasks;
use Appwrite\Event\Delete;
use Swoole\Timer;
use Utopia\Database\Document;
use Utopia\Platform\Action;
use Utopia\CLI\Console;
use Utopia\Database\DateTime;
@ -53,9 +54,7 @@ class ScheduleMessages extends ScheduleBase
$dbForConsole->updateDocument(
'schedules',
$schedule['$id'],
$dbForConsole
->getDocument('schedules', $schedule['$id'])
->setAttribute('active', false)
new Document(['active' => false])
);
$queueForDeletes