Skip to content

Commit

Permalink
Prevent owner notification for the first monitor status timeline entry
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Nov 25, 2024
1 parent 5ad8f00 commit 0ad5ee5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Common/Server/Services/MonitorStatusTimelineService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ export class Service extends DatabaseService<MonitorStatusTimeline> {
},
});

if (!lastMonitorStatusTimeline) {
// since this is the first status, do not notify the owner.
createBy.data.isOwnerNotified = true;
}

return {
createBy,
carryForward: {
Expand Down

0 comments on commit 0ad5ee5

Please sign in to comment.