You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue here is similar to the issue reported in #655 and #1697 but in this case the param is a list of dates instead of an one object of type date.
In Parse.com server works perfectly and in Parse-server running locally it is not works.
Test
In order to test this issue I am calling a cloud function checkDateList from my app. and I send two kind of params, first a Object of type Date and second a list of objects each one of type Date. Regarding the first parameter everything goes ok thanks to fix Pass dates to cloud code functions but regarding the second parameter I think that we have a bug.
Software versions
Parse-iOS-1.12.0
parse server ver 2.2.10.
Function definition
Parse.Cloud.define("checkDateList",function(request,response){//Test of one object of type Dateconsole.log('request.params.date: '+request.params.date)vardate=request.params.dateconsole.log('date : '+date)console.log('date.getTime(): '+date.getTime())//Test list of object each one of type Dateconsole.log('request.params.dateList: '+request.params.dateList)console.log('request.params.dateList[0]: '+request.params.dateList[0])varisoDate=request.params.dateList[0]console.log('isoDate : '+isoDate)console.log('isoDate.getTime(): '+isoDate.getTime)if(isoDate.__type=='Date'){vardate=newDate(isoDate.iso)console.log('date : '+date)console.log('date.getTime(): '+date.getTime())}
The issue here is similar to the issue reported in #655 and #1697 but in this case the param is a list of dates instead of an one object of type date.
In Parse.com server works perfectly and in Parse-server running locally it is not works.
Test
In order to test this issue I am calling a cloud function checkDateList from my app. and I send two kind of params, first a Object of type Date and second a list of objects each one of type Date. Regarding the first parameter everything goes ok thanks to fix Pass dates to cloud code functions but regarding the second parameter I think that we have a bug.
Software versions
Function definition
Parse Server verbose log
Result explanation
The parameter request.params.dateList should be a list of Date but instead is a list of objects.
The text was updated successfully, but these errors were encountered: