Merge pull request #12843 from Budibase/feature/count-creator-plan-change

Feature/count creator plan change
This commit is contained in:
José Vte. Calderón 2024-01-24 08:53:28 +01:00 committed by GitHub
commit ad2da6f55e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

@ -1 +1 @@
Subproject commit 35032a6aeab96437c64b7892ca0ca585e11a6605
Subproject commit 38e7b34a708bcaf6abc677be54b9d74bd8d18ea5

View File

@ -91,6 +91,9 @@ export async function getSelf(ctx: any) {
id: userId,
}
// Adjust creators quotas (prevents wrong creators count if user has changed the plan)
await groups.adjustGroupCreatorsQuotas()
// get the main body of the user
const user = await userSdk.db.getUser(userId)
ctx.body = await groups.enrichUserRolesFromGroups(user)