mirror of
https://github.com/fiatjaf/khatru.git
synced 2026-06-04 09:41:28 +02:00
migrate all built-in storage backends.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package sqlite3
|
||||
|
||||
func (b SQLite3Backend) DeleteEvent(id string, pubkey string) error {
|
||||
_, err := b.DB.Exec("DELETE FROM event WHERE id = $1 AND pubkey = $2", id, pubkey)
|
||||
import "context"
|
||||
|
||||
func (b SQLite3Backend) DeleteEvent(ctx context.Context, id string, pubkey string) error {
|
||||
_, err := b.DB.ExecContext(ctx, "DELETE FROM event WHERE id = $1 AND pubkey = $2", id, pubkey)
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user