feat(dashboard): edit events
This commit is contained in:
@@ -7,7 +7,6 @@ import {
|
||||
createSqlBuilder,
|
||||
db,
|
||||
formatClickhouseDate,
|
||||
getPropertyKey,
|
||||
getSelectPropertyKey,
|
||||
TABLE_NAMES,
|
||||
toDate,
|
||||
|
||||
@@ -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]) {
|
||||
|
||||
Reference in New Issue
Block a user