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";
|
return "no_change";
|
||||||
})();
|
})();
|
||||||
console.debug(`Updating ${m.pubkey} ${updateType}`, m);
|
console.debug(`Updating ${m.pubkey} ${updateType}`, m);
|
||||||
if (!existing || existing.created < m.created || refresh) {
|
if (updateType !== "no_change") {
|
||||||
if (updateType !== "refresh_profile") {
|
if (updateType !== "refresh_profile") {
|
||||||
// fetch zapper key
|
// fetch zapper key
|
||||||
const lnurl = m.lud16 || m.lud06;
|
const lnurl = m.lud16 || m.lud06;
|
||||||
|
Loading…
Reference in New Issue
Block a user