mirror of
https://github.com/fiatjaf/khatru.git
synced 2026-05-04 18:58:20 +02:00
rethink relayer.
This commit is contained in:
12
plugins/storage/postgresql/delete.go
Normal file
12
plugins/storage/postgresql/delete.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package postgresql
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/nbd-wtf/go-nostr"
|
||||
)
|
||||
|
||||
func (b PostgresBackend) DeleteEvent(ctx context.Context, evt *nostr.Event) error {
|
||||
_, err := b.DB.ExecContext(ctx, "DELETE FROM event WHERE id = $1", evt.ID)
|
||||
return err
|
||||
}
|
||||
Reference in New Issue
Block a user