mirror of
https://github.com/nextcloud/server.git
synced 2026-07-15 13:01:34 -04:00
Also use hashed/indexed column on delete
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
d49d505439
commit
5a78ffbdf8
1 changed files with 2 additions and 2 deletions
|
|
@ -111,8 +111,8 @@ class JobList implements IJobList {
|
|||
$query->delete('jobs')
|
||||
->where($query->expr()->eq('class', $query->createNamedParameter($class)));
|
||||
if (!is_null($argument)) {
|
||||
$argument = json_encode($argument);
|
||||
$query->andWhere($query->expr()->eq('argument', $query->createNamedParameter($argument)));
|
||||
$argumentJson = json_encode($argument);
|
||||
$query->andWhere($query->expr()->eq('argument_hash', $query->createNamedParameter(md5($argumentJson))));
|
||||
}
|
||||
$query->execute();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue