-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PR for review #3
base: review-branch
Are you sure you want to change the base?
Conversation
feat: Add implementation of APIs
Improvements
import sequelize from "../helpers/sequelize.js"; | ||
import { DataTypes } from "sequelize"; | ||
|
||
const AudioSystem = sequelize.define("AudioSystem", { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is Audio-system is required in a separate table? There are going to be fixed number of audio-system. Could have been a column in shows table.
*/ | ||
export const getSeats = async (req, res) => { | ||
try { | ||
const showId = req.params.id; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check for undefined values before hitting the database. It's best practice to reduce database errors by validating values beforehand.
This PR is for the sake of adding comments.