Skip to content

Commit

Permalink
fix: regresion wrong new storage path reference (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanpicado committed Jun 22, 2022
1 parent d51f2c8 commit e30035b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/plenty-donkeys-begin.md
@@ -0,0 +1,5 @@
---
'@verdaccio/local-storage': patch
---

fix: regresion wrong new storage path reference
4 changes: 3 additions & 1 deletion plugins/local-storage/src/token.ts
Expand Up @@ -21,7 +21,9 @@ export default class TokenActions implements ITokenActions {
}

public _dbGenPath(dbName: string, config: Config): string {
return Path.join(Path.resolve(Path.dirname(config.config_path || ''), config.storage as string, dbName));
return Path.join(
Path.resolve(Path.dirname(config.self_path || ''), config.storage as string, dbName)
);
}

private async getTokenDb(): Promise<low.LowdbAsync<any>> {
Expand Down

0 comments on commit e30035b

Please sign in to comment.