Skip to content

Commit

Permalink
fix: no room for student should not be an error
Browse files Browse the repository at this point in the history
  • Loading branch information
obcode committed Jan 8, 2025
1 parent d03c332 commit 8e0f3f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plexams/rooms.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,9 +538,9 @@ func (p *Plexams) PlannedRoomForStudent(ctx context.Context, ancode int, mtknr s
}
}

err = fmt.Errorf("student %s not found in planned rooms for ancode %d", mtknr, ancode)
log.Error().Err(err).Int("ancode", ancode).Str("mtknr", mtknr).Msg("student not found in planned rooms")
return nil, err
// err = fmt.Errorf("student %s not found in planned rooms for ancode %d", mtknr, ancode)
// log.Error().Err(err).Int("ancode", ancode).Str("mtknr", mtknr).Msg("student not found in planned rooms")
return nil, nil
}

// func enhancePlannedRooms(plannedRooms []*model.PlannedRoom) []*model.EnhancedPlannedRoom {
Expand Down

0 comments on commit 8e0f3f8

Please sign in to comment.