Skip to content

Commit

Permalink
fixed arrow functions
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGolodetsky committed Oct 13, 2021
1 parent e8970b4 commit f86b1d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/api/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ router.put("/:id", async (req, res) => {
{ id: id },
{ username: username },
{ upsert: false },
function (error, result) {
(error, result) => {
if (error) {
res.status(400).json(error);
} else {
Expand Down

0 comments on commit f86b1d9

Please sign in to comment.