refactor: use updateType for condition
This commit is contained in:
parent
2528232f5e
commit
6c55f42dd1
@ -63,7 +63,7 @@ class UserProfileCache extends FeedCache<MetadataCache> {
|
||||
return "no_change";
|
||||
})();
|
||||
console.debug(`Updating ${m.pubkey} ${updateType}`, m);
|
||||
if (!existing || existing.created < m.created || refresh) {
|
||||
if (updateType !== "no_change") {
|
||||
if (updateType !== "refresh_profile") {
|
||||
// fetch zapper key
|
||||
const lnurl = m.lud16 || m.lud06;
|
||||
|
Loading…
x
Reference in New Issue
Block a user