mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
Merge pull request #42316 from nextcloud/backport/42305/stable28
[stable28] fix(joblist): also reset last_run timestamp on updating an existing job
This commit is contained in:
commit
36f91063a1
1 changed files with 1 additions and 0 deletions
|
|
@ -88,6 +88,7 @@ class JobList implements IJobList {
|
|||
$query->update('jobs')
|
||||
->set('reserved_at', $query->expr()->literal(0, IQueryBuilder::PARAM_INT))
|
||||
->set('last_checked', $query->createNamedParameter($firstCheck, IQueryBuilder::PARAM_INT))
|
||||
->set('last_run', $query->createNamedParameter(0, IQueryBuilder::PARAM_INT))
|
||||
->where($query->expr()->eq('class', $query->createNamedParameter($class)))
|
||||
->andWhere($query->expr()->eq('argument_hash', $query->createNamedParameter(md5($argumentJson))));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue