fix: reviews
This commit is contained in:
parent
87c7da0efa
commit
30db70fe80
1 changed files with 2 additions and 4 deletions
|
@ -2090,15 +2090,13 @@ App::delete('/v1/functions/:functionId/executions/:executionId')
|
|||
}
|
||||
|
||||
if ($status === 'scheduled') {
|
||||
$results = $dbForConsole->find('schedules', [
|
||||
$schedule = $dbForConsole->findOne('schedules', [
|
||||
Query::equal('resourceId', [$execution->getId()]),
|
||||
Query::equal('resourceType', [ScheduleExecutions::getSupportedResource()]),
|
||||
Query::equal('active', [true]),
|
||||
]);
|
||||
|
||||
if (count($results) === 1) {
|
||||
$schedule = $results[0];
|
||||
|
||||
if ($schedule && !$schedule->isEmpty()) {
|
||||
$schedule
|
||||
->setAttribute('resourceUpdatedAt', DateTime::now())
|
||||
->setAttribute('active', false);
|
||||
|
|
Loading…
Reference in a new issue