stringify profileid

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-05-29 16:01:27 +02:00
parent ad305e71ae
commit fd921533fd
2 changed files with 3 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ export async function getProfileById(id: string, projectId: string) {
}
const [profile] = await chQuery<IClickhouseProfile>(
`SELECT * FROM profiles WHERE id = ${escape(id)} AND project_id = ${escape(projectId)} ORDER BY created_at DESC LIMIT 1`
`SELECT * FROM profiles WHERE id = ${escape(String(id))} AND project_id = ${escape(projectId)} ORDER BY created_at DESC LIMIT 1`
);
if (!profile) {