This commit is contained in:
@@ -23,7 +23,7 @@ export class RemindersController {
|
||||
|
||||
@Post('send')
|
||||
@UseGuards(RolesGuard)
|
||||
@Roles('admin')
|
||||
@Roles('admin', 'manager')
|
||||
@ApiOperation({ summary: 'Send payment reminders via Resend (admin only)' })
|
||||
@ApiResponse({ status: 201, description: 'Reminders sent' })
|
||||
@ApiResponse({ status: 400, description: 'Resend not configured' })
|
||||
@@ -42,7 +42,7 @@ export class RemindersController {
|
||||
|
||||
@Post('test/:plannedTabId')
|
||||
@UseGuards(RolesGuard)
|
||||
@Roles('admin')
|
||||
@Roles('admin', 'manager')
|
||||
@ApiOperation({ summary: 'Send a test email to a planned customer (admin only)' })
|
||||
@ApiResponse({ status: 201, description: 'Test email sent' })
|
||||
@ApiResponse({ status: 400, description: 'Resend not configured or customer has no email' })
|
||||
|
||||
Reference in New Issue
Block a user