Skip to content

Commit

Permalink
chore: run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
choyiny committed Jun 3, 2024
1 parent b76d9f0 commit 817944f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions lectures/04-data/chirper/routers/chirps-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@ chirpsRouter.post("/", upload.single("image"), async (req, res, next) => {
if (e.name === "SequelizeForeignKeyConstraintError") {
return res.status(422).json({ error: "Invalid parent chirp id" });
} else if (e.name === "SequelizeValidationError") {
return res
.status(422)
.json({
error:
"Invalid input parameters. Expected content, file and (optional) ChirpId",
});
return res.status(422).json({
error:
"Invalid input parameters. Expected content, file and (optional) ChirpId",
});
} else {
return res.status(400).json({ error: "Cannot create chirp" });
}
Expand Down
2 changes: 1 addition & 1 deletion lectures/04-data/chirper/static/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
Expand Down

0 comments on commit 817944f

Please sign in to comment.