File tree Expand file tree Collapse file tree
apps/meteor/app/api/server/v1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ const ChatSyncMessagesSchema = {
250250 nullable : true ,
251251 } ,
252252 count : {
253- type : 'string ' ,
253+ type : 'number ' ,
254254 nullable : true ,
255255 } ,
256256 next : {
@@ -634,11 +634,11 @@ const chatEndpoints = API.v1
634634 }
635635
636636 const getMessagesQuery = {
637- ...( lastUpdate ? { lastUpdate : new Date ( lastUpdate ) } : { } ) ,
638- ...( next ? { next } : { } ) ,
639- ...( previous ? { previous } : { } ) ,
640- ...( count ? { count } : { } ) ,
641- ...( type ? { type } : { } ) ,
637+ ...( lastUpdate && { lastUpdate : new Date ( lastUpdate ) } ) ,
638+ ...( next && { next } ) ,
639+ ...( previous && { previous } ) ,
640+ ...( count && { count } ) ,
641+ ...( type && { type } ) ,
642642 } ;
643643
644644 const result = await getMessageHistory ( roomId , this . userId , getMessagesQuery ) ;
You can’t perform that action at this time.
0 commit comments