Skip to content

PR for review#3

Open
aashutoshPanda wants to merge 37 commits into
review-branchfrom
main
Open

PR for review#3
aashutoshPanda wants to merge 37 commits into
review-branchfrom
main

Conversation

@aashutoshPanda
Copy link
Copy Markdown
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", {
Copy link
Copy Markdown

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.

Comment thread src/controllers/shows.js
*/
export const getSeats = async (req, res) => {
try {
const showId = req.params.id;
Copy link
Copy Markdown

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