File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- /*
21import { Calendar } from '@rocket.chat/core-services' ;
32import type { ICalendarEvent } from '@rocket.chat/core-typings' ;
43import {
@@ -223,4 +222,3 @@ API.v1.post(
223222 return API . v1 . success ( ) ;
224223 } ,
225224) ;
226- */
Original file line number Diff line number Diff line change @@ -4568,7 +4568,7 @@ describe('Threads', () => {
45684568 . expect ( 400 )
45694569 . expect ( ( res ) => {
45704570 expect ( res . body ) . to . have . property ( 'success' , false ) ;
4571- expect ( res . body ) . to . have . property ( 'errorType' , 'invalid-params' ) ;
4571+ expect ( res . body ) . to . have . property ( 'errorType' , 'error- invalid-params' ) ;
45724572 } )
45734573 . end ( done ) ;
45744574 } ) ;
@@ -4586,7 +4586,7 @@ describe('Threads', () => {
45864586 . expect ( 400 )
45874587 . expect ( ( res ) => {
45884588 expect ( res . body ) . to . have . property ( 'success' , false ) ;
4589- expect ( res . body ) . to . have . property ( 'errorType' , 'invalid-params' ) ;
4589+ expect ( res . body ) . to . have . property ( 'errorType' , 'error- invalid-params' ) ;
45904590 } )
45914591 . end ( done ) ;
45924592 } ) ;
@@ -4605,7 +4605,7 @@ describe('Threads', () => {
46054605 . expect ( 400 )
46064606 . expect ( ( res ) => {
46074607 expect ( res . body ) . to . have . property ( 'success' , false ) ;
4608- expect ( res . body ) . to . have . property ( 'errorType' , 'invalid-params' ) ;
4608+ expect ( res . body ) . to . have . property ( 'errorType' , 'error- invalid-params' ) ;
46094609 } )
46104610 . end ( done ) ;
46114611 } ) ;
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 : 'invalid-params' ,
223+ errorType : 'error- 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