Working on exercise 1.2

This commit is contained in:
2024-11-16 16:56:20 +01:00
parent 70e508ce7a
commit 7912e38932
16 changed files with 85 additions and 59 deletions

View File

@@ -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
})