Przeglądaj źródła

Add 'aiAssistant' population to recent threads query

Shun Miyazawa 10 miesięcy temu
rodzic
commit
4521bea1c1

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

@@ -59,6 +59,7 @@ export const getRecentThreadsFactory: GetRecentThreadsFactory = (crowi) => {
             page: req.query.page ?? 1,
             page: req.query.page ?? 1,
             limit: req.query.limit ?? 10,
             limit: req.query.limit ?? 10,
             sort: { updatedAt: -1 },
             sort: { updatedAt: -1 },
+            populate: 'aiAssistant',
           },
           },
         );
         );
         return res.apiv3({ paginateResult });
         return res.apiv3({ paginateResult });