From c97a4868b1ab997e68b44f2881d2628d4b169b2d Mon Sep 17 00:00:00 2001 From: Pranav2612000 Date: Sat, 11 Mar 2023 00:23:49 +0530 Subject: [PATCH] fix: trigger account subscription event on email verification --- app/controllers/api/account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index aa447290b..5b0454ded 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -2333,7 +2333,7 @@ App::put('/v1/account/verification') $dbForProject->deleteCachedDocument('users', $profile->getId()); $events - ->setParam('userId', $user->getId()) + ->setParam('userId', $userId) ->setParam('tokenId', $verificationDocument->getId()) ;