feat: add org- prefix to org ids in notes
This commit is contained in:
@@ -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}}}`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user