Skip to content

Commit f235428

Browse files
committed
fix previously deprecated table name specification usage in db query builder delete expression
fixes #826 Signed-off-by: binsky <timo@binsky.org>
1 parent f12f4c5 commit f235428

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Service/NotificationService.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ function hasCredentialExpirationNotification($credential): bool {
114114

115115
function deleteNotificationsOfCredential($credential) {
116116
$qb = $this->db->getQueryBuilder();
117-
$qb->delete()
118-
->from('notifications')
117+
$qb->delete('notifications')
119118
->where($qb->expr()->eq('object_id', $qb->createNamedParameter($credential->getId(), IQueryBuilder::PARAM_INT)))
120119
->andWhere($qb->expr()->eq('object_type', 'credential'));
121120
return $qb->execute();

0 commit comments

Comments
 (0)