vue-meteor icon indicating copy to clipboard operation
vue-meteor copied to clipboard

Incompatibility with Meteor-Files (collection prototype overloaded)

Open outluch opened this issue 8 years ago • 1 comments

Installed ostrio:files and serving of images doesnt work, while vue-ssr enabled. I investigated couple of hours and found: in file server/data.js there are overloading of Mongo.Collection.prototype.find and Mongo.Collection.prototype.findOne with new functions. ostrio:files depends on these methods when serves images from uploads folder. I understand it is done for some reason. What can we do here? Discussion is welcome.

outluch avatar Oct 11 '17 17:10 outluch

For now I commented overloading of findOne. It is only used for serving of image. And i think it is not often used command in UI. And it can be raplaced with find().fetch()[0], if I need it in future.

outluch avatar Oct 11 '17 19:10 outluch