File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -109,15 +109,15 @@ function hasCredentialExpirationNotification($credential): bool {
109109 ->from ('notifications ' )
110110 ->where ($ qb ->expr ()->eq ('object_id ' , $ qb ->createNamedParameter ($ credential ->getId (), IQueryBuilder::PARAM_INT )))
111111 ->andWhere ($ qb ->expr ()->eq ('subject ' , $ qb ->createNamedParameter ('credential_expired ' , IQueryBuilder::PARAM_STR )));
112- return $ qb ->execute ()->rowCount () !== 0 ;
112+ return $ qb ->executeQuery ()->rowCount () !== 0 ;
113113 }
114114
115115 function deleteNotificationsOfCredential ($ credential ) {
116116 $ qb = $ this ->db ->getQueryBuilder ();
117117 $ qb ->delete ('notifications ' )
118118 ->where ($ qb ->expr ()->eq ('object_id ' , $ qb ->createNamedParameter ($ credential ->getId (), IQueryBuilder::PARAM_INT )))
119- ->andWhere ($ qb ->expr ()->eq ('object_type ' , 'credential ' ));
120- return $ qb ->execute ();
119+ ->andWhere ($ qb ->expr ()->eq ('object_type ' , $ qb -> createNamedParameter ( 'credential ' , IQueryBuilder:: PARAM_STR ) ));
120+ return $ qb ->executeStatement ();
121121 }
122122
123123 function markNotificationOfCredentialAsProcessed (int $ credential_id , string $ user_id ): void {
You can’t perform that action at this time.
0 commit comments