Skip to content

Commit

Permalink
tested a different filtering which does not trigger testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Sep 24, 2024
1 parent facf576 commit 315815d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/backend/student_club.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ import (
func (s *CampusServer) ListStudentClub(ctx context.Context, req *pb.ListStudentClubRequest) (*pb.ListStudentClubReply, error) {
var dbClubs []model.StudentClub
if err := s.db.WithContext(ctx).
Where("language = ?", req.GetLanguage().String()).
Where(&model.StudentClub{Language: req.GetLanguage().String()}).
Where(&model.StudentClubCollection{Language: req.GetLanguage().String()}).
Joins("Image").
Joins("StudentClubCollection").
Find(&dbClubs).Error; err != nil {
Expand Down

0 comments on commit 315815d

Please sign in to comment.