Shun Miyazawa 1 سال پیش
والد
کامیت
c741e763b4
1فایلهای تغییر یافته به همراه1 افزوده شده و 3 حذف شده
  1. 1 3
      apps/app/src/server/routes/apiv3/ai-integration/rebuild-vector-store.ts

+ 1 - 3
apps/app/src/server/routes/apiv3/ai-integration/rebuild-vector-store.ts

@@ -9,8 +9,6 @@ import type { ApiV3Response } from '../interfaces/apiv3-response';
 
 
 const logger = loggerFactory('growi:routes:apiv3:ai-integration:rebuild-vector-store');
 const logger = loggerFactory('growi:routes:apiv3:ai-integration:rebuild-vector-store');
 
 
-type Req = Request<undefined, ApiV3Response>
-
 type RebuildVectorStoreFactory = (crowi: Crowi) => RequestHandler[];
 type RebuildVectorStoreFactory = (crowi: Crowi) => RequestHandler[];
 
 
 export const rebuildVectorStoreHandlersFactory: RebuildVectorStoreFactory = (crowi) => {
 export const rebuildVectorStoreHandlersFactory: RebuildVectorStoreFactory = (crowi) => {
@@ -24,7 +22,7 @@ export const rebuildVectorStoreHandlersFactory: RebuildVectorStoreFactory = (cro
 
 
   return [
   return [
     accessTokenParser, loginRequiredStrictly, adminRequired, validator, apiV3FormValidator,
     accessTokenParser, loginRequiredStrictly, adminRequired, validator, apiV3FormValidator,
-    async(req: Req, res: ApiV3Response) => {
+    async(req: Request, res: ApiV3Response) => {
       return res.apiv3({});
       return res.apiv3({});
     },
     },
   ];
   ];