mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
refactor(Service): streamline incident count template replacement
This commit is contained in:
@@ -768,10 +768,7 @@ export class Service extends DatabaseService<Model> {
|
||||
let result: string = template;
|
||||
|
||||
// Replace dynamic variables
|
||||
result = result.replace(
|
||||
/\{\{incidentCount\}\}/g,
|
||||
incidentCount.toString(),
|
||||
);
|
||||
result = result.replace(/\{\{incidentCount\}\}/g, incidentCount.toString());
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user