Fix check of params of loadNextMessages

pull/4208/head
Rodrigo Nascimento 9 years ago
parent b5e6978f51
commit cee6fc10af
No known key found for this signature in database
GPG Key ID: 2C85B3AFE75D23F9
  1. 2
      server/methods/loadHistory.coffee
  2. 2
      server/methods/loadNextMessages.coffee

@ -4,7 +4,7 @@ Meteor.methods
check rid, String
# check end, Match.Optional(Number)
check limit, Number
# check ls, Match.Optional(Number)
check ls, Match.Optional(Date)
if not Meteor.userId()
throw new Meteor.Error 'error-invalid-user', 'Invalid user', { method: 'loadHistory' }

@ -2,7 +2,7 @@ Meteor.methods
loadNextMessages: (rid, end, limit=20) ->
check rid, String
check end, Match.Optional(Number)
# check end, Match.Optional(Number)
check limt, Number
if not Meteor.userId()

Loading…
Cancel
Save