refactor: remove unused file, update timestamps on query views and views
- Deleted the unused file `src/auth/drizzle/one.ts`. - Modified `updatedAt` field in `src/db/drizzle/schema.ts` to automatically update on record changes. - Added `updatedAt` field to the response in `src/routes/query-views/list.ts` and `src/routes/views/list.ts` to ensure it reflects the current timestamp.
This commit is contained in:
@@ -88,6 +88,7 @@ app.route({
|
||||
tags: rest.tags,
|
||||
link: rest.link,
|
||||
data: rest.data,
|
||||
updatedAt: new Date()
|
||||
}).where(eq(schema.queryViews.id, id)).returning();
|
||||
}
|
||||
ctx.body = view;
|
||||
|
||||
@@ -91,6 +91,7 @@ app.route({
|
||||
link: rest.link,
|
||||
data: rest.data,
|
||||
views: rest.views,
|
||||
updatedAt: new Date()
|
||||
}).where(eq(schema.routerViews.id, id)).returning();
|
||||
}
|
||||
ctx.body = view;
|
||||
|
||||
Reference in New Issue
Block a user