fehlerbehebung

This commit is contained in:
xoy 2023-01-28 18:41:04 +01:00
parent 46640f21f9
commit 49205f06c5
2 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@ func getEvents() []event {
for rows.Next() {
Event := new(event)
err := rows.Scan(&Event.date, &Event.description, &Event.media, &Event.title)
err := rows.Scan(&Event.id, &Event.title, &Event.description, &Event.media, &Event.date)
if err != nil {
panic(err)
}

View File

@ -11,9 +11,10 @@ type status struct {
}
type event struct {
id int
title string
description string
media []string
media string
date string
}