fix previously deprecated table name specification usage in db query builder delete expression

fixes #826

Signed-off-by: binsky <timo@binsky.org>
This commit is contained in:
binsky 2025-03-09 21:15:06 +01:00
parent f12f4c5e10
commit f235428850
No known key found for this signature in database
GPG key ID: B438F7FA2E3AC98F

View file

@ -114,8 +114,7 @@ class NotificationService {
function deleteNotificationsOfCredential($credential) {
$qb = $this->db->getQueryBuilder();
$qb->delete()
->from('notifications')
$qb->delete('notifications')
->where($qb->expr()->eq('object_id', $qb->createNamedParameter($credential->getId(), IQueryBuilder::PARAM_INT)))
->andWhere($qb->expr()->eq('object_type', 'credential'));
return $qb->execute();