Working on exercise 1.2
This commit is contained in:
@@ -251,7 +251,8 @@
|
||||
"date": "2024-10-30",
|
||||
"price": 79.90,
|
||||
"inStock": 1073,
|
||||
"location": "LANXESS arena"
|
||||
"location": "LANXESS arena",
|
||||
"offered": false
|
||||
},
|
||||
{
|
||||
"date": "2024-10-23",
|
||||
|
||||
@@ -34,8 +34,8 @@
|
||||
"descriptionEn": "Manipulate the URL and access the help page"
|
||||
},
|
||||
{
|
||||
"nameDe": "Das ausgebuchte Konzert buchen",
|
||||
"nameEn": "Book the unavailable concert",
|
||||
"nameDe": "Das versteckte Konzert buchen",
|
||||
"nameEn": "Book the hidden concert",
|
||||
"exerciseNr": 2,
|
||||
"descriptionDe": "Manipuliere die URL so, dass du das ausgebuchte Konzert aufrufen kannst und buche ein Ticket dafür",
|
||||
"descriptionEn": "Manipulate the URL and access the sold out concert and buy a ticket"
|
||||
|
||||
@@ -11,6 +11,7 @@ import { Seat } from "../models/locations/seat.model";
|
||||
import { SeatRow } from "../models/locations/seatRow.model";
|
||||
import { SeatGroup } from "../models/locations/seatGroup.model";
|
||||
import { Account } from "../models/user/account.model";
|
||||
import { Exercise } from "backend/models/exercises/exercise.model";
|
||||
|
||||
export const order = Router()
|
||||
|
||||
|
||||
@@ -296,13 +296,14 @@ export async function prepopulateDatabase() {
|
||||
}
|
||||
})
|
||||
.then(async location => {
|
||||
console.log(concert.offered)
|
||||
concerts.push({
|
||||
date: concert.date,
|
||||
name: concertGroup.name,
|
||||
price: concert.price,
|
||||
image: "http://localhost:3000/static/" + concertGroup.image,
|
||||
inStock: concert.inStock,
|
||||
offered: true,
|
||||
offered: concert.offered != undefined ? concert.offered : true,
|
||||
bandId: dataset.dataValues.id,
|
||||
locationId: location.dataValues.id
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user