소스 검색

Fix users.save is not a function.

Thanks to xet7 !
Lauri Ojansivu 1 년 전
부모
커밋
42ece21fa1
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      models/users.js

+ 2 - 1
models/users.js

@@ -1891,7 +1891,8 @@ if (Meteor.isServer) {
     // Avatar URLs from CollectionFS to Meteor-Files, at users collection avatarUrl field:
     Users.find({ "profile.avatarUrl": { $regex: "/cfs/files/avatars/" } }).forEach(function (doc) {
         doc.profile.avatarUrl = doc.profile.avatarUrl.replace("/cfs/files/avatars/", "/cdn/storage/avatars/");
-      Users.save(doc);
+      // Try to fix Users.save is not a fuction, by commenting it out:
+      //Users.save(doc);
     });
     /* TODO: Optionally, for additional complexity:
        a) Support SubURLs with parthname from ROOT_URL