Skip to content

Commit

Permalink
tracking errors for preferences update job
Browse files Browse the repository at this point in the history
  • Loading branch information
Baalmart committed Dec 14, 2024
1 parent de97821 commit 78bbc1a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/auth-service/bin/jobs/preferences-update-job.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
)}`
);
});
}
}
Expand Down

0 comments on commit 78bbc1a

Please sign in to comment.