Skip to content

Commit

Permalink
Score changes pt.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanjung1998 committed Feb 26, 2024
1 parent e7b4272 commit 5032665
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/scanner-service/src/controller/scanner.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class ScannerController {
try {
const text: string = await this.service.getTextFromImage(req.body);
const materials: Tag[] = this.service.getMaterials(text);
return res.status(201).json(materials);
const score: number = this.service.getSustainability(materials);
return res.status(201).json(score);
} catch (e) {
next(e);
}
Expand Down

0 comments on commit 5032665

Please sign in to comment.