Fix db query to restore previous doc version (#498)

This commit is contained in:
Jeremy 2024-11-06 20:24:18 +03:00 committed by GitHub
parent d948b99719
commit c5f6ac8deb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 5 deletions

View file

@ -82,7 +82,7 @@ export const document = pgTable(
export type Document = InferSelectModel<typeof document>;
export const Suggestion = pgTable(
export const suggestion = pgTable(
'Suggestion',
{
id: uuid('id').notNull().defaultRandom(),
@ -106,4 +106,4 @@ export const Suggestion = pgTable(
})
);
export type Suggestion = InferSelectModel<typeof Suggestion>;
export type Suggestion = InferSelectModel<typeof suggestion>;