fix: check the settings for extension installed (#2764)

This commit is contained in:
Vlad Stan
2024-11-06 12:07:12 +02:00
committed by GitHub
parent ba5f79da2d
commit aced333c0b
4 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ async def stop_extension_background_work(ext_id: str) -> bool:
Stop background work for extension (like asyncio.Tasks, WebSockets, etc).
Extensions SHOULD expose a `api_stop()` function.
"""
upgrade_hash = settings.lnbits_upgraded_extensions.get(ext_id, "")
upgrade_hash = settings.extension_upgrade_hash(ext_id)
ext = Extension(ext_id, True, upgrade_hash=upgrade_hash)
try: