refactor: use updateType for condition

This commit is contained in:
Kieran 2023-04-04 19:31:15 +01:00
parent 2528232f5e
commit 6c55f42dd1
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -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;