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

Linux vanilla kernel on QEMU and networking with eth0 -

rdbms - what exactly the undo information lives in oracle? -

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