aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-05-30 15:07:26 +0200
committerAndy Scherzinger <info@andy-scherzinger.de>2024-07-10 20:29:36 +0200
commit7a801f0690a7d00e31e4155cb286ceb93feb1262 (patch)
treea1330924f082f8a66f9bb4fe255d876b0afc1f54 /lib/private
parent440968fe2ccbcb2d3a01a618b6eb29f7a4e09dc0 (diff)
downloadnextcloud-server-7a801f0690a7d00e31e4155cb286ceb93feb1262.tar.gz
nextcloud-server-7a801f0690a7d00e31e4155cb286ceb93feb1262.zip
fix: delete background jobs by id when cleaning up
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/BackgroundJob/JobList.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/BackgroundJob/JobList.php b/lib/private/BackgroundJob/JobList.php
index 4e5d11604e6..851858245e9 100644
--- a/lib/private/BackgroundJob/JobList.php
+++ b/lib/private/BackgroundJob/JobList.php
@@ -135,7 +135,7 @@ class JobList implements IJobList {
}
}
- protected function removeById(int $id): void {
+ public function removeById(int $id): void {
$query = $this->connection->getQueryBuilder();
$query->delete('jobs')
->where($query->expr()->eq('id', $query->createNamedParameter($id, IQueryBuilder::PARAM_INT)));