feat: org tagging bug fix

This commit is contained in:
2026-01-27 13:51:13 +05:30
parent 14c297aee8
commit 5c8c17418b

View File

@@ -44,7 +44,7 @@ export async function createNote(
orgs.push({ orgId: obj.client.toString(), taggedAt: new Date() }); orgs.push({ orgId: obj.client.toString(), taggedAt: new Date() });
noteContent = noteContent.replaceAll( noteContent = noteContent.replaceAll(
"{{client}}", "{{client}}",
`{{${obj.client.toString()}}`, `{{${obj.client.toString()}}}`,
); );
} }
@@ -52,7 +52,7 @@ export async function createNote(
orgs.push({ orgId: process.env.SUNCOAST_ID, taggedAt: new Date() }); orgs.push({ orgId: process.env.SUNCOAST_ID, taggedAt: new Date() });
noteContent = noteContent.replaceAll( noteContent = noteContent.replaceAll(
"{{agent}}", "{{agent}}",
`{{${process.env.SUNCOAST_ID}}`, `{{${process.env.SUNCOAST_ID}}}`,
); );
} }
}); });