Archived
Get up to 50 messages before ISO 8601 timestamp
This commit is contained in:
1 parent
74d0c502f3
commit
9b46852e20
4 files changed
+117
-3
No files matched your search
@@ -4,6 +4,13 @@ export const getMessageByIdSchema = z.object({
|
||||
id: z.uuidv7()
|
||||
})
|
||||
|
||||
export const getMessagesBeforeDate = z.object({
|
||||
date: z.string().refine((val) => !isNaN(Date.parse(val)), {
|
||||
message: "Invalid date string format"
|
||||
}),
|
||||
channelId: z.uuidv7()
|
||||
})
|
||||
|
||||
export const sendMessageSchema = z.object({
|
||||
channelId: z.uuidv7(),
|
||||
userId: z.uuidv7(),
|
||||
|
||||
Reference in new issue
Block a user