mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
replacing offset with pagination
This commit is contained in:
parent
711d8061a6
commit
3a651adea5
2 changed files with 3 additions and 5 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
<?php
|
||||
|
||||
ini_set('memory_limit', -1);
|
||||
ini_set('max_execution_time', -1);
|
||||
global $cli;
|
||||
global $register;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue