wisdom #19

Merged
bragaz_rexita merged 38 commits from wisdom into main 2025-12-22 09:18:18 +00:00
Showing only changes of commit 20d035a1ca - Show all commits

View File

@@ -17,6 +17,10 @@ const {
getNotificationErrorLogByNotificationErrorIdDb,
} = require('../db/notification_error_log.db');
const {
getSparepartsByErrorCodeIdDb,
} = require('../db/brand_sparepart.db');
const { getFileUploadByPathDb } = require('../db/file_uploads.db');
const { ErrorHandler } = require('../helpers/error');
@@ -71,10 +75,13 @@ class NotificationService {
})
);
const spareparts = await getSparepartsByErrorCodeIdDb(errorCode.error_code_id);
notification.error_code = {
...errorCode,
solution: solutionsWithDetails
};
notification.spareparts = spareparts;
}
}