Kaynağa Gözat

Return true

Shun Miyazawa 1 yıl önce
ebeveyn
işleme
9ced9e7400

+ 2 - 0
apps/app/src/features/openai/server/routes/middlewares/upsert-ai-assistant-validator.ts

@@ -35,6 +35,8 @@ export const upsertAiAssistantValidator: ValidationChain[] = [
       if (pagePathPattens.length > 300) {
         throw new Error('pagePathPattens must be an array of strings with a maximum length of 300');
       }
+
+      return true;
     }),
 
   body('pagePathPatterns.*') // each item of pagePathPatterns