Skip to content

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.

3 participants