SpoonX/aurelia-api

passing date parameter

Closed this issue · 12 comments

I just did a jspm update and now every place I pass a date value with your api, the date value does not get passed.

See below code example:
return this.endpoint.find('scheduling/scheduleentry', { shiftDate : shiftDate, shiftId : shiftId })
.then(response => {
return response;
}).catch(console.error);

Below is the error I'm getting showing only shiftId is getting sent:
aurelia-fetch-client.js:140 GET http://localhost:1672/api/scheduling/scheduleentry?shiftId=1 500 (Internal Server Error)

@jrabalais So it worked before? Could you tell me which version worked?

Yes, I was on 3.0.0-rc4 prior to my update. I reverted back to that for now and it's working again.

That's odd. Have you been able to find the cause? It appears to be working for me. If not, could you provide me with a code snippet so I can reproduce it?

@jrabalais That would be of great help. A console log of the thing you're trying to send would also help.

@jrabalais We'll look into this shortly. In the meantime, maybe you can take a look yourself? The code isn't that terrifyingly difficult :)

Also, attachments don't work. So best answer on github :)

reminds me of #157

tested it and should work fine