VulcanJS / Vulcan

🌋 A toolkit to quickly build apps with React, GraphQL & Meteor
http://vulcanjs.org
MIT License
7.98k stars 1.89k forks source link

validationErrors undefined #2185

Closed Julien-Sytadelle closed 5 years ago

Julien-Sytadelle commented 5 years ago

Hi,

Since my last pull of devel this morning, I cannot create or update any object. In vulcan-lib/server/mutators.js, l65, validationErrors are now undefined but were a list before the call to collection.create.validate callback.

If I force them back to an empty list, it makes an error later in mongo connector telling that insert needs an argument.

I commented all my custom callbacks but does it does nothing and my code works well with master branch.

SachaG commented 5 years ago

Yes, I introduced a bug, sorry about that. Just reverted my commit, it should work again now.

Julien-Sytadelle commented 5 years ago

No problem, that's how dev goes. I'll test tomorrow morning then close the issue.

Le 22 janv. 2019 à 01:55, à 01:55, Sacha Greif notifications@github.com a écrit:

Yes, I introduced a bug, sorry about that. Just reverted my commit, it should work again now.

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/VulcanJS/Vulcan/issues/2185#issuecomment-456235418