update basic and closed.

This commit is contained in:
fiatjaf
2022-07-24 11:35:12 -03:00
parent 440a64ef28
commit ca1d1ce58f
2 changed files with 12 additions and 0 deletions

6
basic/delete.go Normal file
View File

@@ -0,0 +1,6 @@
package main
func (b *BasicRelay) DeleteEvent(id string, pubkey string) error {
_, err := b.DB.Exec("DELETE FROM events WHERE id = $1 AND pubkey = $2")
return err
}

6
closedrelay/delete.go Normal file
View File

@@ -0,0 +1,6 @@
package main
func (b *ClosedRelay) DeleteEvent(id string, pubkey string) error {
_, err := b.DB.Exec("DELETE FROM events WHERE id = $1 AND pubkey = $2")
return err
}