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 741a6c7 commit b5234ebCopy full SHA for b5234eb
server/controllers/user.controller.js
@@ -34,7 +34,6 @@ export async function findUserByUsername(username) {
34
const user = await User.findByUsername(username);
35
return user;
36
} catch (error) {
37
- // Handling the error appropriately, e.g., log the error, throw a custom error, etc.
38
console.error('Error finding user by username:', error.message);
39
throw new Error('Failed to find user by username');
40
}
0 commit comments