Redesign and reimplementing account page
This commit is contained in:
@@ -41,7 +41,7 @@ export const sequelize = new Sequelize({
|
||||
})
|
||||
|
||||
export function startDatabase() {
|
||||
let force = true
|
||||
let force = false
|
||||
|
||||
// Create database and tables
|
||||
sequelize.sync({ force: force })
|
||||
|
||||
@@ -6,6 +6,7 @@ import { Payment } from "../models/user/payment.model";
|
||||
import { Address } from "../models/user/address.model";
|
||||
import { Band } from "../models/acts/band.model";
|
||||
import { Location } from "../models/locations/location.model";
|
||||
import { Event } from "../models/acts/event.model";
|
||||
|
||||
export const order = Router()
|
||||
|
||||
@@ -19,7 +20,13 @@ order.get("/:id", (req: Request, res: Response) => {
|
||||
include: [
|
||||
{
|
||||
model: Concert,
|
||||
include: [ Band, Location ],
|
||||
include: [
|
||||
{
|
||||
model: Event,
|
||||
include: [ Band ]
|
||||
},
|
||||
Location
|
||||
],
|
||||
attributes: {
|
||||
exclude: [
|
||||
"categoryId",
|
||||
|
||||
Reference in New Issue
Block a user