return existing vault id, if found
Some checks failed
Playwright Tests / test (push) Has been cancelled
Some checks failed
Playwright Tests / test (push) Has been cancelled
This commit is contained in:
parent
21b2584ef0
commit
ad8d996a4c
@ -81,7 +81,7 @@ function generateVaultConfig(vault: string) {
|
||||
writeFileSync(path.join(configLocation, `${vaultHash}.json`), "{}");
|
||||
return vaultHash;
|
||||
} else {
|
||||
return "";
|
||||
return Object.entries(json.vaults).find(a => a[1].path === vault)![0];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user