1
0
Fork 0
mirror of synced 2024-10-01 09:38:55 +13:00

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

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