Skip to content

Commit

Permalink
fixup! Better cleanup routine for statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
georgehrke committed Sep 3, 2020
1 parent 6e66da9 commit 00aee2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/user_status/lib/Db/UserStatusMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function clearStatusesOlderThan(int $olderThan, int $now): void {
->set('status_timestamp', $qb->createNamedParameter($now, IQueryBuilder::PARAM_INT))
->where($qb->expr()->lte('status_timestamp', $qb->createNamedParameter($olderThan, IQueryBuilder::PARAM_INT)))
->andWhere($qb->expr()->orX(
$qb->expr()->eq('is_user_defined', $qb->createNamedParameter(false, IQueryBuilder::PARAM_BOOL)),
$qb->expr()->eq('is_user_defined', $qb->createNamedParameter(false, IQueryBuilder::PARAM_BOOL), IQueryBuilder::PARAM_BOOL),
$qb->expr()->eq('status', $qb->createNamedParameter(IUserStatus::ONLINE))
));

Expand Down

0 comments on commit 00aee2f

Please sign in to comment.