Skip to content

Commit

Permalink
fixed not all parts of the mensa getting deactivated by the killswitch
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Sep 20, 2023
1 parent a163228 commit 3304780
Showing 1 changed file with 4 additions and 1 deletion.
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 3304780

Please sign in to comment.