copleykj / socialize-cloudinary

A Meteor package for integrating a meteor application with Cloudinary image/video managment service
MIT License
11 stars 4 forks source link

Exception while invoking method 'cloudinary.get_download_url' TypeError: ops.filter is not a function #5

Closed matikucharski closed 3 years ago

matikucharski commented 4 years ago

I got following error when callingCloudinary.downloadUrl method. I can see problem is here in server.js file: return Cloudinary.utils.private_download_url(publicId, format, ops.filter(op => op !== 'format'));

I don't know why it assumes there is filter method in ops object. What is more it looks like it is bad rewrite of following code _.omit(ops,"format") from lepozepo original source code. filter is prototype method of Array - not Object

copleykj commented 4 years ago

Thanks! I've got some releases to do in the next day or so and I'll get a patch out for this as well.