Skip to content

Commit 346ff1c

Browse files
committed
Merge branch 'staging'
2 parents 8fc8d26 + fc0bb5a commit 346ff1c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/shared-db/src/schema/moderation.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ export const insertModerationHistorySchema = createInsertSchema(
8888
export const selectModerationHistorySchema = createSelectSchema(
8989
moderationHistory,
9090
{
91+
id: z.preprocess(
92+
// or coerce
93+
(val) => (typeof val === "string" ? parseInt(val, 10) : val),
94+
z.number(),
95+
),
9196
createdAt: z.date(),
9297
updatedAt: z.date().nullable(),
9398
moderatorAccountIdType: moderatorAccountIdTypeSchema,

0 commit comments

Comments
 (0)