Changed download path
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
2a7495bac9
commit
4ef540c8f3
|
@ -4,8 +4,7 @@ const path = require('path');
|
|||
|
||||
module.exports = Self => {
|
||||
Self.getPath = function() {
|
||||
// return '/var/lib/salix/image';
|
||||
return 'C:\\Users\\jsanc\\Desktop\\image';
|
||||
return '/var/lib/salix/image';
|
||||
};
|
||||
|
||||
Self.registerImage = async(collectionName, file, srcFilePath) => {
|
||||
|
|
|
@ -20,9 +20,7 @@ module.exports = Self => {
|
|||
const models = Self.app.models;
|
||||
|
||||
try {
|
||||
/* const tempPath = path.join('/tmp/salix-image'); */
|
||||
const rootPath = models.Image.getPath();
|
||||
const tempPath = path.join(rootPath, 'temp');
|
||||
const tempPath = path.join('/tmp/salix-image');
|
||||
|
||||
// Create temporary path
|
||||
await fs.mkdir(tempPath, {recursive: true});
|
||||
|
|
Loading…
Reference in New Issue