From 6879ff77b553cf95b363bdc86844741debe4e5a0 Mon Sep 17 00:00:00 2001 From: abdou6666 Date: Tue, 4 Feb 2025 17:13:59 +0100 Subject: [PATCH] fix: pluginNameSchema typing --- api/src/chat/schemas/types/message.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/chat/schemas/types/message.ts b/api/src/chat/schemas/types/message.ts index 71877bc4..bcdbe0eb 100644 --- a/api/src/chat/schemas/types/message.ts +++ b/api/src/chat/schemas/types/message.ts @@ -154,9 +154,9 @@ export type StdOutgoingAttachmentMessage = z.infer< typeof stdOutgoingAttachmentMessageSchema >; -export const pluginNameSchema = z.object({ - name: z.string().regex(/-plugin$/) as z.ZodType, -}); +export const pluginNameSchema = z + .string() + .regex(/-plugin$/) as z.ZodType; export const stdPluginMessageSchema = z.object({ plugin: pluginNameSchema,