mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-09 07:48:57 +00:00
Trigger vault sync after imports
This commit is contained in:
@@ -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"}
|
||||
|
||||
|
||||
|
@@ -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))
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user