diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2022-03-02 12:08:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-02 12:08:10 +0100 |
commit | 6261d6731a6bde7616370432e78f7362b2126a88 (patch) | |
tree | 3339e177feea7ce0053d9c081cb430cf7c06be3b /lib | |
parent | 2ff0c972c98a14f4dbd81d7923b119770600918f (diff) | |
parent | abcf45e3367461714785b742f70a31b4774c3816 (diff) | |
download | nextcloud-server-6261d6731a6bde7616370432e78f7362b2126a88.tar.gz nextcloud-server-6261d6731a6bde7616370432e78f7362b2126a88.zip |
Merge pull request #31398 from nextcloud/techdebt/noid/also-use-hashed-column-on-delete
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/BackgroundJob/JobList.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/BackgroundJob/JobList.php b/lib/private/BackgroundJob/JobList.php index 16dfa7b58a6..67caea62af0 100644 --- a/lib/private/BackgroundJob/JobList.php +++ b/lib/private/BackgroundJob/JobList.php @@ -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(); } |