chore: typo in function name nofiy_upgrade (#2383)
small typo in ext manager
This commit is contained in:
parent
468121a453
commit
ef6bc4c3ae
3 changed files with 3 additions and 3 deletions
|
|
@ -282,7 +282,7 @@ async def restore_installed_extension(app: FastAPI, ext: InstallableExtension):
|
||||||
# mount routes for the new version
|
# mount routes for the new version
|
||||||
core_app_extra.register_new_ext_routes(extension)
|
core_app_extra.register_new_ext_routes(extension)
|
||||||
if extension.upgrade_hash:
|
if extension.upgrade_hash:
|
||||||
ext.nofiy_upgrade()
|
ext.notify_upgrade()
|
||||||
|
|
||||||
|
|
||||||
def register_custom_extensions_path():
|
def register_custom_extensions_path():
|
||||||
|
|
|
||||||
|
|
@ -102,7 +102,7 @@ async def api_install_extension(
|
||||||
core_app_extra.register_new_ext_routes(extension)
|
core_app_extra.register_new_ext_routes(extension)
|
||||||
|
|
||||||
if extension.upgrade_hash:
|
if extension.upgrade_hash:
|
||||||
ext_info.nofiy_upgrade()
|
ext_info.notify_upgrade()
|
||||||
|
|
||||||
return extension
|
return extension
|
||||||
except AssertionError as e:
|
except AssertionError as e:
|
||||||
|
|
|
||||||
|
|
@ -479,7 +479,7 @@ class InstallableExtension(BaseModel):
|
||||||
shutil.copytree(Path(self.ext_upgrade_dir), Path(self.ext_dir))
|
shutil.copytree(Path(self.ext_upgrade_dir), Path(self.ext_dir))
|
||||||
logger.success(f"Extension {self.name} ({self.installed_version}) installed.")
|
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
|
Update the list of upgraded extensions. The middleware will perform
|
||||||
redirects based on this
|
redirects based on this
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue