mufidu / booku

0 stars 1 forks source link

Sweep: Fix incorrect use of new #32

Closed sweep-ai[bot] closed 7 months ago

sweep-ai[bot] commented 7 months ago

PR Feedback: 👍

Description

This pull request addresses a syntax error in the instantiation of a new `Book` object within the `POST /books` route. The incorrect use of curly braces `{}` when passing parameters to the `Book` constructor has been corrected to use parentheses `()`.

# Summary
- Corrected the syntax for creating a new `Book` instance in `app.js`.
- Ensured that the `Book` object is properly instantiated with the provided `title`, `author`, `year`, `category`, and `cover` from the request body.

Fixes #31.


🎉 Latest improvements to Sweep:
  • New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
  • Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
  • Use the GitHub issues extension for creating Sweep issues directly from your editor.

💡 To get Sweep to edit this pull request, you can:

This is an automated message generated by Sweep AI.

sweep-ai[bot] commented 7 months ago

Rollback Files For Sweep

This is an automated message generated by Sweep AI.

sweep-ai[bot] commented 7 months ago

Apply Sweep Rules to your PR?

This is an automated message generated by Sweep AI.