diff --git a/lib/Service/NotificationService.php b/lib/Service/NotificationService.php index 02982b7a..02bd906c 100644 --- a/lib/Service/NotificationService.php +++ b/lib/Service/NotificationService.php @@ -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();