From 5032665c16010829466a852a0ca9e46b95fbb3fa Mon Sep 17 00:00:00 2001 From: ryanjung1998 Date: Mon, 26 Feb 2024 09:48:02 -0700 Subject: [PATCH] Score changes pt.3 --- backend/scanner-service/src/controller/scanner.controller.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/scanner-service/src/controller/scanner.controller.ts b/backend/scanner-service/src/controller/scanner.controller.ts index 3a36e6c..788d343 100644 --- a/backend/scanner-service/src/controller/scanner.controller.ts +++ b/backend/scanner-service/src/controller/scanner.controller.ts @@ -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); }