Skip to content

Commit

Permalink
fix postgres delete event query
Browse files Browse the repository at this point in the history
  • Loading branch information
LiranCohen authored and fiatjaf committed Jan 18, 2023
1 parent e270b56 commit 0442b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/postgresql/delete.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package postgresql

func (b PostgresBackend) DeleteEvent(id string, pubkey string) error {
_, err := b.DB.Exec("DELETE FROM events WHERE id = $1 AND pubkey = $2")
_, err := b.DB.Exec("DELETE FROM event WHERE id = $1 AND pubkey = $2", id, pubkey)
return err
}

0 comments on commit 0442b02

Please sign in to comment.