mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2026-01-17 12:02:26 +01:00
update for frontend
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user