Shun Miyazawa 1 an în urmă
părinte
comite
c741e763b4

+ 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');
 
-type Req = Request<undefined, ApiV3Response>
-
 type RebuildVectorStoreFactory = (crowi: Crowi) => RequestHandler[];
 
 export const rebuildVectorStoreHandlersFactory: RebuildVectorStoreFactory = (crowi) => {
@@ -24,7 +22,7 @@ export const rebuildVectorStoreHandlersFactory: RebuildVectorStoreFactory = (cro
 
   return [
     accessTokenParser, loginRequiredStrictly, adminRequired, validator, apiV3FormValidator,
-    async(req: Req, res: ApiV3Response) => {
+    async(req: Request, res: ApiV3Response) => {
       return res.apiv3({});
     },
   ];