1
0
Fork 0
mirror of synced 2024-06-28 19:20:25 +12:00

Fix cache purge

This commit is contained in:
Jake Barnby 2023-12-15 17:45:25 +13:00
parent 4ce312560b
commit 9c79e6bc23
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -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);
}