fix: throw on duplicate event

This commit is contained in:
Vlad Stan 2023-02-01 15:29:41 +02:00
parent 25d41d094c
commit d79901b4fb

View file

@ -18,7 +18,6 @@ async def create_event(relay_id: str, e: NostrEvent):
sig
)
VALUES (?, ?, ?, ?, ?, ?, ?)
ON CONFLICT (id) DO NOTHING
""",
(relay_id, e.id, e.pubkey, e.created_at, e.kind, e.content, e.sig),
)