fix: Return scopes on owner setup endpoint (no-changelog) (#7860)

Github issue / Community forum post (link here to close automatically):
This commit is contained in:
Val
2023-11-29 11:33:32 +00:00
committed by GitHub
parent c08c5cc37b
commit e282ea242d
2 changed files with 3 additions and 1 deletions

View File

@@ -101,7 +101,7 @@ export class OwnerController {
void this.internalHooks.onInstanceOwnerSetup({ user_id: userId });
return this.userService.toPublic(owner, { posthog: this.postHog });
return this.userService.toPublic(owner, { posthog: this.postHog, withScopes: true });
}
@Post('/dismiss-banner')