fix(server): empty tag responses should be considered valid (#2993)

* accept empty tag array

* renamed test
This commit is contained in:
Mert
2023-06-28 10:40:30 -04:00
committed by GitHub
parent 22a73b67d3
commit 017214fd56
2 changed files with 2 additions and 6 deletions
@@ -41,10 +41,6 @@ export class SmartInfoService {
}
const tags = await this.machineLearning.classifyImage({ imagePath: asset.resizePath });
if (tags.length === 0) {
return false;
}
await this.repository.upsert({ assetId: asset.id, tags });
return true;