Open fr33dr4g0n opened 9 years ago
It should be in the collections folder under lib
I move to lib folder my "SEO.JS" and doesn't work still the same error ...
allow-deny.js:494 Uncaught Error: Not permitted. Untrusted code may only update documents by ID. [403]
Here's what I'm trying to do: SeoCollection.update( { route_name: 'home', route_name: 'pageone', route_name: 'pagetwo' }, { $set: { route_name: 'home', title: '', meta: { 'description': '' }, og: { 'title': '', 'description' : '', 'image': '', 'url': '', 'type': '' }, twitter: { 'card': 'summary_large_image', 'site': '', 'title': '', 'description':'', 'image': '' } } }, { $set: { route_name: 'pageone', title: '', meta: { 'description': '' }, og: { 'title': '', 'description' : '', 'image': '', 'url': '', 'type': '' }, twitter: { 'card': 'summary_large_image', 'site': '', 'title': '', 'description':'', 'image': '' } } }, { $set: { route_name: 'pagetwo', title: '', meta: { 'description': '' }, og: { 'title': '', 'description' : '', 'image': '', 'url': '', 'type': '' }, twitter: { 'card': 'summary_large_image', 'site': '', 'title': '', 'description':'', 'image': '' } } }, { upsert: true } );
I get this error: "Exception in Mongo write: TypeError: object is not a function"
I've placed this into my project root older in a file called seosettings.js
What am I doing wrong?