瀏覽代碼

fixup! Ref: Avatars to use modern gridfs

David Arnold 4 年之前
父節點
當前提交
ef712a700e
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      server/publications/avatars.js

+ 2 - 1
server/publications/avatars.js

@@ -1,3 +1,4 @@
+import Avatars from '../../models/avatars';
 Meteor.publish('my-avatars', function() {
-  return Avatars.find({ userId: this.userId });
+  return Avatars.find({ userId: this.userId }).cursor;
 });