forked from Kieran/snort
1
0
Fork 0

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
1 changed files with 1 additions and 1 deletions

View File

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