Skip to content

Commit bb975a7

Browse files
nickvergessenbackportbot[bot]
authored andcommitted
fix(webpush): Don't reuse query object for second query
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 4509523 commit bb975a7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/Controller/WebPushController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,8 @@ protected function activateSubscription(IUser $user, IToken|ISession $token, str
298298
if ($row['activated']) {
299299
return ActivationSubStatus::OK;
300300
}
301+
302+
$query = $this->db->getQueryBuilder();
301303
$query->update('notifications_webpush')
302304
->set('activated', $query->createNamedParameter(true))
303305
->where($query->expr()->eq('uid', $query->createNamedParameter($user->getUID())))

0 commit comments

Comments
 (0)