user-store: more fixes 2

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2020-07-05 22:45:39 +03:00
1 parent 397d7c5137
commit 9244e8f58e
5 files changed
+53 -52

No files matched your search

+1 -3
View File
@@ -1,4 +1,3 @@
import path from "path";
import Config from "conf";
import { isTestEnv } from "../common/vars";
@@ -15,8 +14,7 @@ function infoLog(...args: any[]) {
export function migration<S = any>({ version, run }: MigrationOpts) {
return {
[version]: (storeConfig: Config<S>) => {
const storeName = path.dirname(storeConfig.path);
infoLog(`STORE MIGRATION (${storeName}): ${version}`,);
infoLog(`STORE MIGRATION (${storeConfig.path}): ${version}`,);
run(storeConfig, infoLog);
}
};