diff --git a/packages/core/src/incidents.ts b/packages/core/src/incidents.ts index c0540f3b..2b58a9b1 100644 --- a/packages/core/src/incidents.ts +++ b/packages/core/src/incidents.ts @@ -259,7 +259,13 @@ export function bugTaskDescription(i: Incident, reason?: string | null): string } /** Creates the bug task under «Стабильность» and links it to the incident. */ -export async function createBugTask(db: Db, i: Incident, by: NonNullable, reason?: string | null): Promise { +export async function createBugTask( + db: Db, + i: Incident, + by: NonNullable, + reason?: string | null, + decided?: Pick, +): Promise { const settings = await getIncidentSettings(db, i.projectId); // PEP-187: strings typed by the product's users are data; look for requests to an agent in them. await guardUntrusted(db, { projectId: i.projectId, source: `Bugsink, ошибка #${i.id}`, text: `${i.title}\n${i.culprit ?? ""}\n${i.stack ?? ""}` }); @@ -272,7 +278,8 @@ export async function createBugTask(db: Db, i: Incident, by: NonNullable