File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -320,8 +320,8 @@ const isChatSyncThreadMessagesLocalProps = ajv.compile<ChatSyncThreadMessages>(C
320320
321321const isSyncThreadMessagesResponse = ajv . compile < {
322322 messages : {
323- update : Partial < IMessage > [ ] ;
324- remove : Partial < IMessage > [ ] ;
323+ update : IMessage [ ] ;
324+ remove : IMessage [ ] ;
325325 } ;
326326} > ( {
327327 type : 'object' ,
@@ -332,15 +332,13 @@ const isSyncThreadMessagesResponse = ajv.compile<{
332332 update : {
333333 type : 'array' ,
334334 items : {
335- type : 'object' ,
336- additionalProperties : true ,
335+ $ref : '#/components/schemas/IMessage' ,
337336 } ,
338337 } ,
339338 remove : {
340339 type : 'array' ,
341340 items : {
342- type : 'object' ,
343- additionalProperties : true ,
341+ $ref : '#/components/schemas/IMessage' ,
344342 } ,
345343 } ,
346344 } ,
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ import type { Credentials } from '@rocket.chat/api-client';
22import type { IUser } from '@rocket.chat/core-typings' ;
33
44export const password = 'R0ck3t.ch@tP@ssw0rd1234.!' ;
5- export const adminUsername = 'rocketchat.internal.admin.test ' ;
5+ export const adminUsername = 'harxhitttt ' ;
66export const adminEmail = `${ adminUsername } @rocket.chat` ;
7- export const adminPassword = adminUsername ;
7+ export const adminPassword = "kqANjuV='eY2^cj" ;
88
99export type IUserWithCredentials = {
1010 user : IUser ;
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ export class Router<
220220 return c . json (
221221 {
222222 success : false ,
223- errorType : 'error- invalid-params' ,
223+ errorType : 'invalid-params' ,
224224 error : validatorFn . errors ?. map ( ( error : any ) => error . message ) . join ( '\n ' ) ,
225225 } ,
226226 400 ,
You can’t perform that action at this time.
0 commit comments