update for frontend

This commit is contained in:
Elmar Kresse
2023-09-10 10:39:00 +02:00
parent 991d069931
commit eeb84db0cc
6 changed files with 114 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ func SaveGroups(seminarGroup []model.SeminarGroup, collection *models.Collection
func GetAllCourses(app *pocketbase.PocketBase) []string {
var courses []struct {
Rooms string `db:"course" json:"course"`
CourseShortcut string `db:"course" json:"course"`
}
// get all rooms from event records in the events collection
@@ -37,8 +37,8 @@ func GetAllCourses(app *pocketbase.PocketBase) []string {
var courseArray []string
for _, room := range courses {
courseArray = append(courseArray, room.Rooms)
for _, course := range courses {
courseArray = append(courseArray, course.CourseShortcut)
}
return courseArray