Skip to content
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

Open
wants to merge 37 commits into
base: review-branch
Choose a base branch
from
Open

PR for review #3

wants to merge 37 commits into from

Conversation

aashutoshPanda
Copy link
Owner

@aashutoshPanda aashutoshPanda commented Jun 10, 2023

This PR is for the sake of adding comments.

import sequelize from "../helpers/sequelize.js";
import { DataTypes } from "sequelize";

const AudioSystem = sequelize.define("AudioSystem", {

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;

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants