Просмотр исходного кода

Add 'aiAssistant' population to recent threads query

Shun Miyazawa 10 месяцев назад
Родитель
Сommit
4521bea1c1
1 измененных файлов с 1 добавлено и 0 удалено
  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 });