Skip to content

Commit

Permalink
feat: include createdByUserId in IncidentFeed creation for better tra…
Browse files Browse the repository at this point in the history
…cking of incident authors
  • Loading branch information
simlarsen committed Jan 14, 2025
1 parent 169db73 commit 6c672c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Common/Server/Services/IncidentService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,12 +329,16 @@ export class Service extends DatabaseService<Model> {
}
}


const createdByUserId: ObjectID | undefined = createdItem.createdByUserId;

await IncidentFeedService.createIncidentFeed({
incidentId: createdItem.id!,
projectId: createdItem.projectId!,
incidentFeedEventType: IncidentFeedEventType.IncidentCreated,
displayColor: Blue500,
feedInfoInMarkdown: "Incident Created",
userId: createdByUserId,
});

if (!createdItem.currentIncidentStateId) {
Expand Down

0 comments on commit 6c672c5

Please sign in to comment.