Browse Source

Add 'aiAssistant' population to recent threads query

Shun Miyazawa 10 months ago
parent
commit
4521bea1c1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      apps/app/src/features/openai/server/routes/get-recent-threads.ts

+ 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,
             limit: req.query.limit ?? 10,
             sort: { updatedAt: -1 },
+            populate: 'aiAssistant',
           },
         );
         return res.apiv3({ paginateResult });