Up Version to 1.3.2

This commit is contained in:
Alex Tran
2022-03-23 15:36:38 -05:00
parent e9acd21733
commit 725ab5622f
7 changed files with 10 additions and 10 deletions

View File

@@ -96,7 +96,7 @@ export class BackgroundTaskProcessor {
async deleteFileOnDisk(job) {
const { assets }: { assets: AssetEntity[] } = job.data;
assets.forEach(async (asset) => {
for (const asset of assets) {
fs.unlink(asset.originalPath, (err) => {
if (err) {
console.log('error deleting ', asset.originalPath);
@@ -108,7 +108,7 @@ export class BackgroundTaskProcessor {
console.log('error deleting ', asset.originalPath);
}
});
});
}
}
@Process('tag-image')
@@ -121,7 +121,7 @@ export class BackgroundTaskProcessor {
smartInfo.assetId = asset.id;
smartInfo.tags = [...res.data];
this.smartInfoRepository.save(smartInfo);
await this.smartInfoRepository.save(smartInfo);
}
}
}