Skip to content

Commit 4aa93fa

Browse files
authored
fix: force saving new profile pictures when they refresh (#138)
1 parent 0033171 commit 4aa93fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

imports/api/blocks/server/methods.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,8 @@ Meteor.methods({
632632
if (validator.description && validator.description.identity) {
633633
let profileUrl = getValidatorProfileUrl(validator.description.identity)
634634
if (profileUrl) {
635-
bulkValidators.find({ address: validator.address }).upsert().updateOne({ $set: { 'profile_url': profileUrl } });
635+
console.log('Updating profile URL for ' + validator.address);
636+
Validators.update({address: validator.address}, { $set: { 'profile_url': profileUrl } })
636637
}
637638
}
638639
} catch (e) {

0 commit comments

Comments
 (0)