fix webhook for deactiavtion

This commit is contained in:
Lakhan Samani
2023-10-11 00:20:15 +05:30
parent 843bc022fe
commit 60de61a74e
3 changed files with 3 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ func DeactivateAccountResolver(ctx context.Context) (*model.Response, error) {
}
go func() {
memorystore.Provider.DeleteAllUserSessions(user.ID)
utils.RegisterEvent(ctx, constants.UserAccessRevokedWebhookEvent, "", user)
utils.RegisterEvent(ctx, constants.UserDeactivatedWebhookEvent, "", user)
}()
res = &model.Response{
Message: `user account deactivated successfully`,