mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-03-01 00:00:26 +00:00
fix:coerce
This commit is contained in:
@@ -7,8 +7,8 @@ import { z } from 'zod';
|
||||
import { isNumeric } from '@/common/helper';
|
||||
|
||||
const SchemaData = z.object({
|
||||
message_id: z.string().optional(),
|
||||
id: z.string().optional(),
|
||||
message_id: z.coerce.string().optional(),
|
||||
id: z.coerce.string().optional(),
|
||||
});
|
||||
type Payload = z.infer<typeof SchemaData>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user