fix: stream assets from storage local locations (#2087)

This commit is contained in:
Regev Brody
2020-07-12 19:19:01 +03:00
committed by GitHub
parent 57f5cbd5b6
commit b2ff064d34
11 changed files with 86 additions and 21 deletions

View File

@@ -116,7 +116,9 @@ module.exports = {
WIKI.logger.info(`(STORAGE/DISK) Renaming file from ${asset.path} to ${asset.destinationPath}...`)
await fs.move(path.join(this.config.path, asset.path), path.join(this.config.path, asset.destinationPath), { overwrite: true })
},
async getLocalLocation (asset) {
return path.join(this.config.path, asset.path)
},
/**
* HANDLERS
*/