From 778d6f98e856f9963e594d1ae7667a78c2865835 Mon Sep 17 00:00:00 2001 From: Antony Kurniawan Date: Tue, 25 Nov 2025 11:49:53 +0700 Subject: [PATCH] repair: get notif error byid --- services/notification_error.service.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/services/notification_error.service.js b/services/notification_error.service.js index 7d96f76..efb46d1 100644 --- a/services/notification_error.service.js +++ b/services/notification_error.service.js @@ -11,9 +11,6 @@ const { getSolutionsByErrorCodeIdDb, } = require('../db/brand_code_solution.db'); -const { - getSparePartnsByErrorCodeIdDb, -} = require('../db/sparepart.db'); const { getAllNotificationErrorLogDb, @@ -73,13 +70,9 @@ class NotificationService { }) ); - // Get spareparts for this error code - const spareparts = (await getSparePartnsByErrorCodeIdDb(errorCode.error_code_id)) || []; - notification.error_code = { ...errorCode, - solution: solutionsWithDetails, - sparepart: spareparts + solution: solutionsWithDetails }; } }