javascript - Undefined is not a function - MeteorJS -


i keep getting undefined not function line below

institutions.insert({$set: {admin: meteor.userid(), title: inst_name, type: inst_type, school: inst_school, description: inst_desc}, $push: {members: meteor.userid()}});

here's full snippet in context. explain how correct error , what's causing it?

https://bpaste.net/show/f1e1c993cc0b

silly mistake -- meteor.userid() needs changed meteor.userid()


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -