Fix tenant creation on user save (#9725)

This commit is contained in:
Rory Powell 2023-02-17 09:16:11 +00:00 committed by GitHub
parent 8971a14865
commit b34b5fc5bb
1 changed files with 1 additions and 0 deletions

View File

@ -264,6 +264,7 @@ export const save = async (
builtUser._rev = response.rev
await eventHelpers.handleSaveEvents(builtUser, dbUser)
await addTenant(tenantId, _id, email)
await cache.user.invalidateUser(response.id)
// let server know to sync user