This commit is contained in:
@@ -11,7 +11,7 @@ async def handle_reaction(notification: dict[str, str | int]):
|
||||
try:
|
||||
n = Notification(**notification)
|
||||
session.add(n)
|
||||
session.commit(n)
|
||||
session.commit()
|
||||
except Exception as e:
|
||||
session.rollback()
|
||||
print(f"[listener.handle_reaction] error: {str(e)}")
|
||||
|
Reference in New Issue
Block a user