Fix cache purge
This commit is contained in:
parent
4ce312560b
commit
9c79e6bc23
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ App::post('/v1/account')
|
||||||
]);
|
]);
|
||||||
$user->setAttribute('targets', [...$user->getAttribute('targets', []), $existingTarget]);
|
$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) {
|
} catch (Duplicate) {
|
||||||
throw new Exception(Exception::USER_ALREADY_EXISTS);
|
throw new Exception(Exception::USER_ALREADY_EXISTS);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue