fix(server): empty tag responses should be considered valid (#2993)
* accept empty tag array * renamed test
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user