From 9c79e6bc238a18dd7e83e5c6eed02c4254ee70e5 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Fri, 15 Dec 2023 17:45:25 +1300 Subject: [PATCH] Fix cache purge --- 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 fc5466a8bf..74b241736a 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -163,7 +163,7 @@ App::post('/v1/account') ]); $user->setAttribute('targets', [...$user->getAttribute('targets', []), $existingTarget]); } - $dbForProject->delete('users', $user->getId()); // todo: What id going on here> + $dbForProject->purgeCachedDocument('users', $user->getId()); } catch (Duplicate) { throw new Exception(Exception::USER_ALREADY_EXISTS); }