diff --git a/server/src/controllers/v1/monitorController.js b/server/src/controllers/v1/monitorController.js index 4d326122a..85cfea3d1 100644 --- a/server/src/controllers/v1/monitorController.js +++ b/server/src/controllers/v1/monitorController.js @@ -380,7 +380,7 @@ class MonitorController extends BaseController { const result = await this.monitorService.getMonitorsAndSummaryByTeamId({ teamId, type, explain }); return res.success({ - msg: "OK", // TODO + msg: this.stringService.monitorSummaryByTeamId, data: result, }); }, @@ -413,7 +413,7 @@ class MonitorController extends BaseController { }); return res.success({ - msg: "OK", + msg: this.stringService.monitorGetByTeamId, data: monitors, }); }, @@ -452,7 +452,7 @@ class MonitorController extends BaseController { const json = await this.monitorService.exportMonitorsToJSON({ teamId }); return res.success({ - msg: "OK", + msg: this.stringService.monitorExportSuccess, data: json, }); }, @@ -463,7 +463,7 @@ class MonitorController extends BaseController { getAllGames = this.asyncHandler( async (req, res) => { return res.success({ - msg: "OK", + msg: this.stringService.gameListSuccess, data: this.monitorService.getAllGames(), }); }, @@ -481,7 +481,7 @@ class MonitorController extends BaseController { const groups = await this.monitorService.getGroupsByTeamId({ teamId }); return res.success({ - msg: "OK", + msg: this.stringService.groupsByTeamId, data: groups, }); }, diff --git a/server/src/locales/en.json b/server/src/locales/en.json index 373911a55..1fbb25f79 100755 --- a/server/src/locales/en.json +++ b/server/src/locales/en.json @@ -165,6 +165,10 @@ "sendTestEmail": "Test email sent successfully", "errorForValidEmailAddress": "A valid recipient email address is required.", "testEmailSubject": "Test E-mail from Checkmate", + "monitorSummaryByTeamId": "Got monitors and summary by team id successfully", + "monitorExportSuccess": "Monitors exported successfully", + "gameListSuccess": "Got game list successfully", + "groupsByTeamId": "Got groups by team id successfully", "discordNotification": { "monitor": "Monitor", "status": "Status",