Skip to content

Commit a0a6c36

Browse files
blvaCopilot
andauthored
Update src/tools/atlas/read/listAlerts.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent c9247e7 commit a0a6c36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/atlas/read/listAlerts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export class ListAlertsTool extends AtlasToolBase {
3131
const alerts = data.results.map((alert) => ({
3232
id: alert.id,
3333
status: alert.status,
34-
created: alert.created ? new Date(alert.created).toISOString() : "N/A",
35-
updated: alert.updated ? new Date(alert.updated).toISOString() : "N/A",
34+
created: alert.created ? new Date(alert.created).toISOString() : null,
35+
updated: alert.updated ? new Date(alert.updated).toISOString() : null,
3636
eventTypeName: alert.eventTypeName,
3737
acknowledgementComment: alert.acknowledgementComment ?? "N/A",
3838
}));

0 commit comments

Comments
 (0)