Trigger vault sync after imports

This commit is contained in:
thePR0M3TH3AN
2025-07-11 20:06:05 -04:00
parent 82b6bbaba3
commit 8414ee53c6
5 changed files with 33 additions and 1 deletions

View File

@@ -513,6 +513,7 @@ async def import_vault(
if not path:
raise HTTPException(status_code=400, detail="Missing file or path")
_pm.handle_import_database(Path(path))
_pm.sync_vault()
return {"status": "ok"}

View File

@@ -372,6 +372,7 @@ def vault_import(
"""Import a vault from an encrypted JSON file."""
pm = _get_pm(ctx)
pm.handle_import_database(Path(file))
pm.sync_vault()
typer.echo(str(file))