Added limit
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-07-13 14:46:00 +02:00
parent 99aa6b666d
commit 80075a6471
1 changed files with 2 additions and 4 deletions

View File

@ -22,9 +22,7 @@ module.exports = Self => {
let filePath;
try {
const imageQueue = await Self.find({
where: {
itemFk: 410421
}
limit: 3
});
// const rootPath = 'C:\\Users\\jsanc\\Desktop\\images';
@ -44,7 +42,7 @@ module.exports = Self => {
response.pipe(file);
await models.Image.register('catalog', fileName, filePath);
// await image.destroy();
await image.destroy();
});
}