diff --git a/.travis.yml b/.travis.yml index cb2d39c7..f2cee127 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,6 @@ language: node_js node_js: +- '4' - '6' - '7' - '8' diff --git a/src/db/utils.ts b/src/db/utils.ts index 5e57510b..56dd014d 100644 --- a/src/db/utils.ts +++ b/src/db/utils.ts @@ -13,7 +13,7 @@ async function fileExists(pth: string) { const copyFile = (src: string, dst: string) => new Promise((resolve, reject) => { - fs.copyFile(src, dst, err => { + fs.copy(src, dst, err => { if (err) { reject(err); } else {