Skip to content

Commit 76c8328

Browse files
committed
fix(chat.syncThreadMessages): remove _id requirement from response schema to support projections
1 parent ab1eeb7 commit 76c8328

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/*
12
import { Calendar } from '@rocket.chat/core-services';
23
import type { ICalendarEvent } from '@rocket.chat/core-typings';
34
import {
@@ -222,3 +223,4 @@ API.v1.post(
222223
return API.v1.success();
223224
},
224225
);
226+
*/

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -290,21 +290,13 @@ const isSyncThreadMessagesResponse = ajv.compile<{
290290
type: 'array',
291291
items: {
292292
type: 'object',
293-
properties: {
294-
_id: { type: 'string' },
295-
},
296-
required: ['_id'],
297293
additionalProperties: true,
298294
},
299295
},
300296
remove: {
301297
type: 'array',
302298
items: {
303299
type: 'object',
304-
properties: {
305-
_id: { type: 'string' },
306-
},
307-
required: ['_id'],
308300
additionalProperties: true,
309301
},
310302
},

0 commit comments

Comments
 (0)