feat(dashboard): edit events

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-09-05 21:14:42 +02:00
parent 07940c7cc5
commit ad3132478a
17 changed files with 248 additions and 246 deletions

View File

@@ -7,7 +7,6 @@ import {
createSqlBuilder,
db,
formatClickhouseDate,
getPropertyKey,
getSelectPropertyKey,
TABLE_NAMES,
toDate,

View File

@@ -52,7 +52,10 @@ export const eventRouter = createTRPCRouter({
)
.query(async ({ input: { id, projectId } }) => {
const res = await getEvents(
`SELECT * FROM ${TABLE_NAMES.events} WHERE id = ${escape(id)} AND project_id = ${escape(projectId)};`
`SELECT * FROM ${TABLE_NAMES.events} WHERE id = ${escape(id)} AND project_id = ${escape(projectId)};`,
{
meta: true,
}
);
if (!res?.[0]) {