wisdom #18

Merged
bragaz_rexita merged 11 commits from wisdom into main 2025-11-28 05:09:59 +00:00
Showing only changes of commit 778d6f98e8 - Show all commits

View File

@@ -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
};
}
}