We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dfda95 commit b2c933eCopy full SHA for b2c933e
controllers/users.js
@@ -633,14 +633,11 @@ const migrate = async (req, res) => {
633
countUserFound++;
634
})
635
.catch((error) => {
636
+ countUserNotFound++;
637
+ const invalidUsers = { userId, username, githubUsername };
638
+ usersNotFound.push(invalidUsers);
639
if (error.response && error.response.status === 404) {
- countUserNotFound++;
- const invalidUsers = {
- userId: `${userId}`,
640
- username: `${username}`,
641
- githubUsername: `${githubUsername}`,
642
- };
643
- usersNotFound.push(invalidUsers);
+ logger.error("GitHub user not found", error);
644
} else {
645
logger.error("An error occurred at axios.get:", error);
646
}
0 commit comments