diff --git a/app/core/background/license_service.py b/app/core/background/license_service.py index f27c63e..4b61392 100644 --- a/app/core/background/license_service.py +++ b/app/core/background/license_service.py @@ -47,8 +47,11 @@ async def license_index_loop(memory, platform_found: bool, seqno: int) -> [bool, UserContent.updated < (datetime.now() - timedelta(minutes=15)), ) ): + make_log("LicenseIndex", f"Syncing content with blockchain: {content.id}", level="info") try: await content.sync_with_chain(session) + content.updated = datetime.now() + session.commit() except BaseException as e: make_log("LicenseIndex", f"Error: {e}" + '\n' + traceback.format_exc(), level="error")