Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
solaris0051 committed Sep 20, 2024
1 parent eb8a5e0 commit fed9eb4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion controllers/genreController.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ exports.genre_delete_post = asyncHandler(async (req, res, next) => {
});
return;
} else {
await Genre.findByIdAnDelete(req.body.id);
await Genre.findByIdAndDelete(req.body.id);
res.redirect("/catalog/genres");
}
});
Expand Down
7 changes: 0 additions & 7 deletions public/javascripts/bootstrap.bundle.min.js

This file was deleted.

6 changes: 3 additions & 3 deletions public/stylesheets/bootstrap.min.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion views/layout.pug
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ html(lang='ja')
meta(name='description', content='tyny book shelf consuming node with express, mongodb and pug.')
link(rel='stylesheet', href='/stylesheets/bootstrap.min.css')
link(rel='icon', href='/images/fav_lib.png', type='image/x-icon')
script(src='/javascripts/bootstrap.bundle.min.js')

body
div(class='container-fluid')
Expand Down

0 comments on commit fed9eb4

Please sign in to comment.