未定义不是函数 - MeteorJS

时间:2014-09-09 22:28:44

标签: javascript meteor meteorite

我一直未定义不是下面一行的功能

Institutions.insert({$set: {admin: Meteor.userId(), title: inst_name, type: inst_type, school: inst_school, description: inst_desc}, $push: {members: Meteor.userID()}});

以下是上下文中的完整代码段。有人会解释如何纠正这个错误以及导致它的原因吗?

https://bpaste.net/show/f1e1c993cc0b

1 个答案:

答案 0 :(得分:1)

愚蠢的错误 - Meteor.userID()需要更改为Meteor.userId()

相关问题