chore: typo in function name nofiy_upgrade (#2383)

small typo in ext manager
This commit is contained in:
dni ⚡ 2024-04-02 08:38:12 +02:00 committed by GitHub
parent 468121a453
commit ef6bc4c3ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -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():

View File

@ -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:

View File

@ -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