From 1a1875e177958881759c24f337a2a10dff753b34 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Thu, 6 Apr 2023 17:31:26 +0300 Subject: [PATCH] fix: duplicate event --- crud.py | 1 + 1 file changed, 1 insertion(+) diff --git a/crud.py b/crud.py index 926cedf..824c0bb 100644 --- a/crud.py +++ b/crud.py @@ -144,6 +144,7 @@ async def create_event(relay_id: str, e: NostrEvent, publisher: Optional[str]): size ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) + ON CONFLICT (relay_id, id) DO NOTHING """, ( relay_id,