pokken: fix typo

This commit is contained in:
Kevin Trocolli
2023-07-23 12:47:37 -04:00
parent 20335aaebe
commit f417be671b
3 changed files with 13 additions and 4 deletions

View File

@@ -39,7 +39,11 @@ class PokkenItemData(BaseData):
type=item_type,
)
result = self.execute(sql)
conflict = sql.on_duplicate_key_update(
content=content,
)
result = self.execute(conflict)
if result is None:
self.logger.warn(f"Failed to insert reward for user {user_id}: {category}-{content}-{item_type}")
return None