Skip to content

Commit

Permalink
fix build errors on windows + refactoring error
Browse files Browse the repository at this point in the history
  • Loading branch information
foxriver76 committed May 16, 2022
1 parent 90b9f0e commit 3b09770
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/common/src/lib/common/maybeCallback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export function maybeCallbackWithRedisError<T extends any[]>(
...args: T
): Promise<any> | void {
if (error instanceof Error && error.message.includes('Connection is closed')) {
error.message = module.exports.ERRORS.ERROR_DB_CLOSED;
error.message = ERRORS.ERROR_DB_CLOSED;
}
return maybeCallbackWithError(callback, error, ...args);
}
2 changes: 1 addition & 1 deletion packages/db-objects-redis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"scripts": {
"build": "tsc -b tsconfig.build.json",
"postbuild": "cp -r ./src/lib/objects/lua* ./build/lib/objects/"
"postbuild": "cpy ./lib/objects/**/*.lua ./build/lib/objects/ --cwd=src"
},
"main": "build/index.js",
"license": "Apache 2.0",
Expand Down

0 comments on commit 3b09770

Please sign in to comment.