fix:format code
This commit is contained in:
1 parent
88a39fe502
commit
1706012e54
4 files changed
+19
-11
No files matched your search
@@ -410,12 +410,12 @@ class MonitorController {
|
||||
// Verify all requested notification IDs actually belong to this team
|
||||
const teamNotifications = await this.notificationsService.findNotificationsByTeamId(teamId);
|
||||
const validNotificationIds = teamNotifications.map((n) => n.id);
|
||||
|
||||
|
||||
const invalidIds = notificationIds.filter((id: string) => !validNotificationIds.includes(id));
|
||||
if (invalidIds.length > 0) {
|
||||
throw new AppError({
|
||||
message: `The following notification IDs are invalid or do not belong to your team: ${invalidIds.join(", ")}`,
|
||||
status: 403
|
||||
throw new AppError({
|
||||
message: `The following notification IDs are invalid or do not belong to your team: ${invalidIds.join(", ")}`,
|
||||
status: 403,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -423,7 +423,7 @@ class MonitorController {
|
||||
teamId,
|
||||
monitorIds,
|
||||
notificationIds,
|
||||
action
|
||||
action,
|
||||
});
|
||||
|
||||
return res.status(200).json({
|
||||
|
||||
Reference in new issue
Block a user