fix: throw on duplicate event
This commit is contained in:
parent
25d41d094c
commit
d79901b4fb
1 changed files with 0 additions and 1 deletions
1
crud.py
1
crud.py
|
|
@ -18,7 +18,6 @@ async def create_event(relay_id: str, e: NostrEvent):
|
||||||
sig
|
sig
|
||||||
)
|
)
|
||||||
VALUES (?, ?, ?, ?, ?, ?, ?)
|
VALUES (?, ?, ?, ?, ?, ?, ?)
|
||||||
ON CONFLICT (id) DO NOTHING
|
|
||||||
""",
|
""",
|
||||||
(relay_id, e.id, e.pubkey, e.created_at, e.kind, e.content, e.sig),
|
(relay_id, e.id, e.pubkey, e.created_at, e.kind, e.content, e.sig),
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue