Skip to content

Commit 1fdf985

Browse files
add missing fields for meeting types in service
1 parent e94035a commit 1fdf985

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/services/club.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ func (s *ClubService) CreateClub(ownerID uint, req *models.CreateClubRequest) (*
6262
Name: req.Name,
6363
Description: req.Description,
6464
Location: req.Location,
65+
MeetingType: req.MeetingType,
6566
Genre: req.Genre,
6667
CoverImageURL: req.CoverImageURL,
6768
IsPrivate: req.IsPrivate,
@@ -163,6 +164,9 @@ func (s *ClubService) UpdateClub(id uint, req *models.UpdateClubRequest) (*model
163164
if req.Location != nil {
164165
club.Location = req.Location
165166
}
167+
if req.MeetingType != nil {
168+
club.MeetingType = req.MeetingType
169+
}
166170
if req.Genre != nil {
167171
club.Genre = req.Genre
168172
}

0 commit comments

Comments
 (0)