【发布时间】:2014-09-10 06:54:19
【问题描述】:
我不断得到 undefined is not a function for the line below
Institutions.insert({$set: {admin: Meteor.userId(), title: inst_name, type: inst_type, school: inst_school, description: inst_desc}, $push: {members: Meteor.userID()}});
这是上下文中的完整 sn-p。有人能解释一下如何纠正这个错误以及导致它的原因吗?
【问题讨论】:
-
用
Meteor.userId()替换Meteor.userID()? -
哦,愚蠢的错误。 @DavidWelon 你会聊天请求吗?遇到麻烦,也被拒绝访问。无法将完整代码放在这里,因为它是私有的。
标签: javascript meteor meteorite