manuel-schoebel / ms-seo

A seo helper package for meteor.js
198 stars 55 forks source link

Static SEO settings errors #69

Open fr33dr4g0n opened 9 years ago

fr33dr4g0n commented 9 years ago

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?

isAlmogK commented 8 years ago

It should be in the collections folder under lib

ccdiego5 commented 8 years ago

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]