fix mysql nostr.KindProfileMetadata constant.

This commit is contained in:
fiatjaf
2023-11-05 10:40:20 -03:00
parent 03517317f8
commit 027ad0738d

View File

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