Skip to content

Commit 4902042

Browse files
@jotadevelopersergiohgz
authored andcommitted
fix: restore build path
1 parent aa63b71 commit 4902042

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

plugins/local-storage/src/local-database.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,7 @@ class LocalDatabase implements ILocalData {
133133
* @private
134134
*/
135135
_buildStoragePath(config: Config) {
136-
const selfPath: string = Path.resolve(Path.dirname(config.self_path || ''));
137-
// $FlowFixMe
138-
const storagePath = Path.join(selfPath, config.storage, config.databaseName || '.sinopia-db.json');
139-
140-
return storagePath;
136+
return Path.join(Path.resolve(Path.dirname(config.self_path || ''), config.storage, '.sinopia-db.json'));
141137
}
142138

143139
/**

0 commit comments

Comments
 (0)