Exercisegroup 0 and 1 complete implemented

This commit is contained in:
2024-11-18 15:41:33 +01:00
parent 9fbd9a1375
commit e2c45c6be0
18 changed files with 138 additions and 80 deletions

View File

@@ -296,9 +296,8 @@ export async function prepopulateDatabase() {
}
})
.then(async location => {
console.log(concert.offered)
concerts.push({
date: concert.date,
date: moment().add(concert.date, "days").format("YYYY-MM-DD"),
name: concertGroup.name,
price: concert.price,
image: "http://localhost:3000/static/" + concertGroup.image,
@@ -354,7 +353,7 @@ export async function prepopulateDatabase() {
where: {
[Op.and] : [
{ name: ticket.concertGroupName },
{ date: ticket.date }
{ date: moment().add(ticket.date, "days").format("YYYY-MM-DD") }
]
}
})