Skip to content

Commit cb2649b

Browse files
andypolsjescalada
andauthored
Update src/service/routes/auth.js
Ah sorry, I have different setting on my IDE. I will run `npm run format` in future. Thanks for tip Co-authored-by: Juan Escalada <[email protected]> Signed-off-by: Andy Pols <[email protected]>
1 parent a587b4a commit cb2649b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/service/routes/auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ router.post('/gitAccount', async (req, res) => {
136136
}
137137

138138
const reqUser = await db.findUser(req.user.username);
139-
if(username !== reqUser.username && !reqUser.admin) {
139+
if (username !== reqUser.username && !reqUser.admin) {
140140
res.status(403).send('Error: You must be an admin to update a different account').end();
141141
return;
142142
}

0 commit comments

Comments
 (0)