fixing implementation of previous commit in multiple places.

This commit is contained in:
fiatjaf
2023-11-05 14:39:02 -03:00
parent 9967d10cd6
commit e477d38e66
4 changed files with 22 additions and 12 deletions

View File

@@ -47,7 +47,7 @@ func deleteOldCachedEvents(ctx context.Context) {
if expires < now {
// time to delete this
id := spl[2]
id := spl[1]
res, _ := wdb.QuerySync(ctx, nostr.Filter{IDs: []string{id}})
if len(res) > 0 {
log.Debug().Msgf("deleting %s", res[0].ID)