mirror of
https://github.com/wekan/wekan.git
synced 2026-01-18 23:36:10 +01:00
Fix users.save is not a function.
Thanks to xet7 !
This commit is contained in:
parent
663ecab51e
commit
42ece21fa1
1 changed files with 2 additions and 1 deletions
|
|
@ -1891,7 +1891,8 @@ if (Meteor.isServer) {
|
||||||
// Avatar URLs from CollectionFS to Meteor-Files, at users collection avatarUrl field:
|
// Avatar URLs from CollectionFS to Meteor-Files, at users collection avatarUrl field:
|
||||||
Users.find({ "profile.avatarUrl": { $regex: "/cfs/files/avatars/" } }).forEach(function (doc) {
|
Users.find({ "profile.avatarUrl": { $regex: "/cfs/files/avatars/" } }).forEach(function (doc) {
|
||||||
doc.profile.avatarUrl = doc.profile.avatarUrl.replace("/cfs/files/avatars/", "/cdn/storage/avatars/");
|
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:
|
/* TODO: Optionally, for additional complexity:
|
||||||
a) Support SubURLs with parthname from ROOT_URL
|
a) Support SubURLs with parthname from ROOT_URL
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue