Skip to content

Commit

Permalink
Merge branch 'main' into feature/kino-api
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm authored Sep 20, 2023
2 parents 19b87b1 + 3304780 commit 9303296
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
- APNS_KEY_ID=${APNS_KEY_ID}
- APNS_TEAM_ID=${APNS_TEAM_ID}
- APNS_P8_FILE_PATH=${APNS_P8_FILE_PATH}
- MensaCronDisabled=false
- MensaCronDisabled=true
- OMDB_API_KEY=${OMDB_API_KEY}
- CAMPUS_API_TOKEN=${CAMPUS_API_TOKEN}
volumes:
Expand Down
5 changes: 4 additions & 1 deletion server/backend/rpcserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package backend
import (
"context"
"errors"
"github.com/TUM-Dev/Campus-Backend/server/env"
"net"

pb "github.com/TUM-Dev/Campus-Backend/server/api/tumdev"
Expand Down Expand Up @@ -37,7 +38,9 @@ var _ pb.CampusServer = (*CampusServer)(nil)

func New(db *gorm.DB) *CampusServer {
log.Trace("Server starting up")
initTagRatingOptions(db)
if env.IsMensaCronActive() {
initTagRatingOptions(db)
}

return &CampusServer{
db: db,
Expand Down

0 comments on commit 9303296

Please sign in to comment.