replacing offset with pagination

This commit is contained in:
shimon 2022-11-07 17:42:08 +02:00
parent 711d8061a6
commit 3a651adea5
2 changed files with 3 additions and 5 deletions

View file

@ -96,7 +96,7 @@ App::post('/v1/functions')
'resourceId' => $function->getId(),
'resourceUpdatedAt' => DateTime::now(),
'projectId' => $project->getId(),
'schedule' => $function['schedule'],
'schedule' => $function->getAttribute('schedule'),
'active' => false,
]))
);
@ -478,8 +478,8 @@ App::put('/v1/functions/:functionId')
}
$log
->setAttribute('schedule', $function['schedule'])
->setAttribute('active', !empty($function->getAttribute('schedule')) && !empty($function->getAttribute('deployment')));
->setAttribute('schedule', $function->getAttribute('schedule'))
->setAttribute('active', $active);
$dbForConsole->updateDocument('schedules', $log->getId(), $log);

View file

@ -1,7 +1,5 @@
<?php
ini_set('memory_limit', -1);
ini_set('max_execution_time', -1);
global $cli;
global $register;