Skip to content

Commit fa3a8e0

Browse files
wtrockiCopilot
andauthored
Update src/tools/atlas/read/listAlerts.ts
Co-authored-by: Copilot <[email protected]>
1 parent ab7d1c9 commit fa3a8e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tools/atlas/read/listAlerts.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ export class ListAlertsTool extends AtlasToolBase {
3333
.map((alert) => {
3434
const created = alert.created ? new Date(alert.created).toLocaleString() : "N/A";
3535
const updated = alert.updated ? new Date(alert.updated).toLocaleString() : "N/A";
36-
return `${alert.id} | ${alert.status} | ${created} | ${updated} | ${alert.eventTypeName} | ${alert.acknowledgementComment}`;
36+
const comment = alert.acknowledgementComment ?? "N/A";
37+
return `${alert.id} | ${alert.status} | ${created} | ${updated} | ${alert.eventTypeName} | ${comment}`;
3738
})
3839
.join("\n");
3940

0 commit comments

Comments
 (0)