feat: add org- prefix to org ids in notes

This commit is contained in:
2026-01-27 14:33:43 +05:30
parent 5c8c17418b
commit 7ba1f5ca6a

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()}}}`, `{{org-${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}}}`, `{{org-${process.env.SUNCOAST_ID}}}`,
); );
} }
}); });