-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Cloud code save object doesn't work #3399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm pretty sure that you are not properly creating the Try to initialize it like this:
|
@rusmichal try with @MartinHerman's suggestion. Same is found in the docs:
We'll reopen if you find the bug happens also creating the object this way. |
I figured it out. I had beforeSave for Thx guys for help :) |
[ x] You've met the prerequisites: https://github.com/ParsePlatform/parse-server/wiki/Parse-Server-Guide#prerequisites.
[ x] You're running the latest version of Parse Server: https://github.com/ParsePlatform/parse-server/releases
[ x] You've searched through existing issues: https://github.com/ParsePlatform/Parse-Server/issues?utf8=%E2%9C%93&q=is%3Aissue Chances are that your issue has been reported or resolved before.
[ x] You have filled out every section below. Issues without sufficient information are more likely to be closed.
Issue Description
I use promises to create
Balance
object for each new user but it seems tobalance.save(..)
doesn't work.Line:
balancePromise.push(balance.save(null, { useMasterKey: true }));
Describe your issue in as much detail as possible.
Maybe from beginning.:
query
object call to check if balance has already exist.adminQuery
intoadminPromises
array and return call with that promieses. (Balance can change onlny admin)balancePromise
array and callParse.Promise.when(balancePromise)
and after this I got nothing. Take a look on logs.****** balance
log is the last before savebalance
. After this got nothing, no errors etc.If I remove
balance.save(..)
then next promises are called.Steps to reproduce
Expected Results
Save balance object and call next steps of promises chain.
Actual Outcome
Cannot save balance object.
Environment Setup
Server
Database
Logs/Trace
You can turn on additional logging by configuring VERBOSE=1 in your environment.
Logs above.
The text was updated successfully, but these errors were encountered: