sdk: replace replaceables instead of saving.

This commit is contained in:
fiatjaf
2026-06-04 10:10:54 -03:00
parent 5a135f5b86
commit d48b1f7c33
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ func fetchGenericList[V comparable, I TagItemWithValue[V]](
// we'll only save this if we got something which means we found at least one event
lastFetchKey := makeLastFetchKey(actualKind, pubkey)
sys.KVStore.Set(lastFetchKey, encodeTimestamp(nostr.Now()))
sys.Store.SaveEvent(*v.Event)
sys.Store.ReplaceEvent(*v.Event)
}
// save cache even if we didn't get anything