From 78bbc1a46c175891e5b22267ba8dc0dfd2dd57b2 Mon Sep 17 00:00:00 2001 From: baalmart Date: Sat, 14 Dec 2024 07:36:26 +0300 Subject: [PATCH] tracking errors for preferences update job --- .../bin/jobs/preferences-update-job.js | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/auth-service/bin/jobs/preferences-update-job.js b/src/auth-service/bin/jobs/preferences-update-job.js index 743db0c7c5..5a98f6642c 100644 --- a/src/auth-service/bin/jobs/preferences-update-job.js +++ b/src/auth-service/bin/jobs/preferences-update-job.js @@ -112,11 +112,11 @@ const updatePreferences = async (siteSelectionMethod = "featured") => { selected_sites: selectedSites, }) .catch((error) => { - // logger.error( - // `🐛🐛 Failed to create preference for user ${userIdStr}: ${stringify( - // error - // )}` - // ); + logger.error( + `🐛🐛 Failed to create preference for user ${userIdStr}: ${stringify( + error + )}` + ); }); } else if (isEmpty(preference.selected_sites)) { // Preference exists but selected_sites is empty, update it @@ -132,11 +132,11 @@ const updatePreferences = async (siteSelectionMethod = "featured") => { { new: true } ) .catch((error) => { - // logger.error( - // `🐛🐛 Failed to update preference for user ${userIdStr}: ${stringify( - // error - // )}` - // ); + logger.error( + `🐛🐛 Failed to update preference for user ${userIdStr}: ${stringify( + error + )}` + ); }); } }