diff --git a/mysql/save.go b/mysql/save.go index b3ecade..eadd679 100644 --- a/mysql/save.go +++ b/mysql/save.go @@ -39,7 +39,7 @@ func deleteBeforeSaveSql(evt *nostr.Event) (string, []any, bool) { params []any shouldDelete bool ) - if evt.Kind == nostr.KindSetMetadata || evt.Kind == nostr.KindContactList || (10000 <= evt.Kind && evt.Kind < 20000) { + if evt.Kind == nostr.KindProfileMetadata || evt.Kind == nostr.KindContactList || (10000 <= evt.Kind && evt.Kind < 20000) { // delete past events from this user query = `DELETE FROM event WHERE pubkey = ? AND kind = ?` params = []any{evt.PubKey, evt.Kind}