We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab7d1c9 commit fa3a8e0Copy full SHA for fa3a8e0
src/tools/atlas/read/listAlerts.ts
@@ -33,7 +33,8 @@ export class ListAlertsTool extends AtlasToolBase {
33
.map((alert) => {
34
const created = alert.created ? new Date(alert.created).toLocaleString() : "N/A";
35
const updated = alert.updated ? new Date(alert.updated).toLocaleString() : "N/A";
36
- return `${alert.id} | ${alert.status} | ${created} | ${updated} | ${alert.eventTypeName} | ${alert.acknowledgementComment}`;
+ const comment = alert.acknowledgementComment ?? "N/A";
37
+ return `${alert.id} | ${alert.status} | ${created} | ${updated} | ${alert.eventTypeName} | ${comment}`;
38
})
39
.join("\n");
40
0 commit comments