Skip to content

Commit

Permalink
Merge pull request #4076 from airqo-platform/hf-preferences-updates
Browse files Browse the repository at this point in the history
tracking errors for preferences update job
  • Loading branch information
Baalmart authored Dec 14, 2024
2 parents de97821 + 78bbc1a commit ff5c18e
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 ff5c18e

Please sign in to comment.