aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Comments
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2022-07-25 11:30:20 -0300
committerVitor Mattos <vitor@php.rio>2022-07-25 11:30:20 -0300
commit7a0648757ae57898af29d8cff403086432fa2ba5 (patch)
tree27f5505c6eff223b2c35a06b0d4bede31f4d4f3c /lib/private/Comments
parent6206b312b2596fc465e0af994e58953b40e27cee (diff)
downloadnextcloud-server-7a0648757ae57898af29d8cff403086432fa2ba5.tar.gz
nextcloud-server-7a0648757ae57898af29d8cff403086432fa2ba5.zip
Delete comments that expired now
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'lib/private/Comments')
-rw-r--r--lib/private/Comments/Manager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Comments/Manager.php b/lib/private/Comments/Manager.php
index b82df1bccc8..53603e51e56 100644
--- a/lib/private/Comments/Manager.php
+++ b/lib/private/Comments/Manager.php
@@ -1652,7 +1652,7 @@ class Manager implements ICommentsManager {
public function deleteCommentsExpiredAtObject(string $objectType, string $objectId = ''): bool {
$qb = $this->dbConn->getQueryBuilder();
$qb->delete('comments')
- ->where($qb->expr()->lt('expire_date',
+ ->where($qb->expr()->lte('expire_date',
$qb->createNamedParameter($this->timeFactory->getDateTime(), IQueryBuilder::PARAM_DATE)))
->andWhere($qb->expr()->eq('object_type', $qb->createNamedParameter($objectType)));