Obviously the user calling the custom end point is logged in, obviously.
But if I test the endpoint in the console logged in with master key and hardcode the username then the user will be updated so the update function is not failing per se.
I have also tried somehow debug the update function but it returns only what looks like my request, not the response so I don't know what is wrong.
daniel_sedlacek
I am following this tutorial: http://emadibrahim.com/2013/10/30/kinvey-stripe/
Everything works fine except the user record will not update. This will fail:
collectionAccess.collection('user')
.update({"username": request.username},
{ $set: { "stripeCustomer": JSON.parse(body) } });
Obviously the user calling the custom end point is logged in, obviously.
But if I test the endpoint in the console logged in with master key and hardcode the username then the user will be updated so the update function is not failing per se.
I have also tried somehow debug the update function but it returns only what looks like my request, not the response so I don't know what is wrong.
Hi,
I was able to execute this:
Possible issues with your code:
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstWani
Hi,
I was able to execute this:
Possible issues with your code:
daniel_sedlacek
It helped, thanks!
-
How do I access query string values for GET and DELETE requests?
-
Basic Authentication in Business Logic
-
How do I cascade delete entities from related collections?
-
All BL failing with Violation Error
-
How do I send push notifications?
-
Whenever I try to query by _id, I get zero results
-
receiving SOCKETTIMEDOUT when requesting external http response
-
Unique Constraints on a collection column?
-
Need some help with grouping
-
Accessing Endpoint from Collection Hook
See all 342 topics