Skip to content

Commit 257ef25

Browse files
committed
fix(chat.getThreadsList): align response type and use query validator
1 parent f96897f commit 257ef25

File tree

1 file changed

+2
-1
lines changed
  • apps/meteor/app/api/server/v1

1 file changed

+2
-1
lines changed

apps/meteor/app/api/server/v1/chat.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ const isChatGetThreadsListResponse = ajv.compile<{
280280
count: number;
281281
offset: number;
282282
total: number;
283+
success: boolean;
283284
}>({
284285
type: 'object',
285286
properties: {
@@ -595,7 +596,7 @@ const chatEndpoints = API.v1
595596
'chat.getThreadsList',
596597
{
597598
authRequired: true,
598-
validateParams: isChatGetThreadsListProps,
599+
query: isChatGetThreadsListProps,
599600
response: {
600601
400: validateBadRequestErrorResponse,
601602
401: validateUnauthorizedErrorResponse,

0 commit comments

Comments
 (0)