Skip to content
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

Doesnt saved nested medias of user Mongoose model on vk sync finish #2

Open
MicrowaveDev opened this issue Nov 12, 2016 · 0 comments
Open

Comments

@MicrowaveDev
Copy link
Owner

MicrowaveDev commented Nov 12, 2016

https://github.com/Jonybang/Awesome-Media/blob/master/app/controllers/vk.js#L292
On this line code for saving numbers of medias objects doesn't work in first time, but work in second time. Because of this, Awesome Medias required synchronization with vk twice.
Some materials of this bug:
http://stackoverflow.com/questions/21243502/saving-nested-objects-in-mongoose
http://stackoverflow.com/questions/21590509/saving-mongoose-nested-schema
http://stackoverflow.com/questions/24054552/mongoose-not-saving-nested-object
Automattic/mongoose#1204

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant