return existing vault id, if found
Some checks failed
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
parent 21b2584ef0
commit ad8d996a4c
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -81,7 +81,7 @@ function generateVaultConfig(vault: string) {
writeFileSync(path.join(configLocation, `${vaultHash}.json`), "{}"); writeFileSync(path.join(configLocation, `${vaultHash}.json`), "{}");
return vaultHash; return vaultHash;
} else { } else {
return ""; return Object.entries(json.vaults).find(a => a[1].path === vault)![0];
} }
} }