mirror of
https://github.com/lnbits/lnbits.git
synced 2025-03-26 17:51:53 +01:00
chore: typo in function name nofiy_upgrade
(#2383)
small typo in ext manager
This commit is contained in:
parent
468121a453
commit
ef6bc4c3ae
@ -282,7 +282,7 @@ async def restore_installed_extension(app: FastAPI, ext: InstallableExtension):
|
||||
# mount routes for the new version
|
||||
core_app_extra.register_new_ext_routes(extension)
|
||||
if extension.upgrade_hash:
|
||||
ext.nofiy_upgrade()
|
||||
ext.notify_upgrade()
|
||||
|
||||
|
||||
def register_custom_extensions_path():
|
||||
|
@ -102,7 +102,7 @@ async def api_install_extension(
|
||||
core_app_extra.register_new_ext_routes(extension)
|
||||
|
||||
if extension.upgrade_hash:
|
||||
ext_info.nofiy_upgrade()
|
||||
ext_info.notify_upgrade()
|
||||
|
||||
return extension
|
||||
except AssertionError as e:
|
||||
|
@ -479,7 +479,7 @@ class InstallableExtension(BaseModel):
|
||||
shutil.copytree(Path(self.ext_upgrade_dir), Path(self.ext_dir))
|
||||
logger.success(f"Extension {self.name} ({self.installed_version}) installed.")
|
||||
|
||||
def nofiy_upgrade(self) -> None:
|
||||
def notify_upgrade(self) -> None:
|
||||
"""
|
||||
Update the list of upgraded extensions. The middleware will perform
|
||||
redirects based on this
|
||||
|
Loading…
x
Reference in New Issue
Block a user