improvement: account setting added to header in order to choose organizations/subscribtions/etc
This commit is contained in:
@@ -145,6 +145,20 @@ export class AuthController {
|
||||
return this.authService.getProfile(req.user.id);
|
||||
}
|
||||
|
||||
@Get('subscription-alert')
|
||||
@UseGuards(JwtAuthGuard)
|
||||
@ApiBearerAuth('JWT-auth')
|
||||
@ApiOperation({
|
||||
summary:
|
||||
'Owner-only: seat / trial status for warning indicator (current org from JWT)',
|
||||
})
|
||||
async getSubscriptionAlert(@Req() req) {
|
||||
return this.authService.getOwnerSubscriptionAlert(
|
||||
req.user.id,
|
||||
req.user.organizationId,
|
||||
);
|
||||
}
|
||||
|
||||
// =========================
|
||||
// LOGOUT
|
||||
// =========================
|
||||
|
||||
Reference in New Issue
Block a user