Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static SEO settings errors #69

Open
fr33dr4g0n opened this issue Aug 20, 2015 · 2 comments
Open

Static SEO settings errors #69

fr33dr4g0n opened this issue Aug 20, 2015 · 2 comments

Comments

@fr33dr4g0n
Copy link

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
Copy link

It should be in the collections folder under lib

@ccdiego5
Copy link

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants