Przeglądaj źródła

fix: update error message for failed recent threads retrieval

Shun Miyazawa 10 miesięcy temu
rodzic
commit
8671b6efc6

+ 1 - 2
apps/app/src/features/openai/server/routes/get-recent-threads.ts

@@ -55,12 +55,11 @@ export const getRecentThreadsFactory: GetRecentThreadsFactory = (crowi) => {
             limit: req.query.limit ?? 10,
           },
         );
-
         return res.apiv3({ paginateResult });
       }
       catch (err) {
         logger.error(err);
-        return res.apiv3Err(new ErrorV3('Failed to get threads'));
+        return res.apiv3Err(new ErrorV3('Failed to get recent threads'));
       }
     },
   ];