Meteor-files: .remove() error = undefined when _id not exists.

Created on 12 Mar 2017  Â·  6Comments  Â·  Source: veliovgroup/Meteor-Files

When I try to remove an Image and its _id not exists in the collection, callback parameter (error) is undefined so callback condition (if(error){...}else{...}) do not work properly and run else part instead of if one.

Thanks.

.remove() bug

All 6 comments

Hello @cortesa ,

Is this happens on server, client or both?

clients

2017-03-15 23:28 GMT+01:00 dr.dimitru notifications@github.com:

Hello @cortesa https://github.com/cortesa ,

Is this happens on server, client or both?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/VeliovGroup/Meteor-Files/issues/378#issuecomment-286899828,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALQTTkTLD4boPa94x0aqESJqKR86wMCMks5rmGYbgaJpZM4MahH1
.

Testing it now, how do you actually call .remove() method? Code-sample please

thanks.

Please, support this project by:

Star on both. good Job.

2017-03-18 11:52 GMT+01:00 dr.dimitru notifications@github.com:

Please, support this project by:

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/VeliovGroup/Meteor-Files/issues/378#issuecomment-287535338,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALQTTgCb7hnr1TdOgiriaG9p1lgSqlJzks5rm7dngaJpZM4MahH1
.

Was this page helpful?
0 / 5 - 0 ratings