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 -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -