Skip to content

Commit

Permalink
Add new
Browse files Browse the repository at this point in the history
  • Loading branch information
idprm committed Dec 2, 2024
1 parent 0fc0fc3 commit 51d3690
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions internal/handler/league_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,10 @@ func (h *LeagueHandler) Update(c *fiber.Ctx) error {
)
}

h.leagueService.Save(
h.leagueService.UpdateByPrimaryId(
&entity.League{
PrimaryID: req.PrimaryID,
Keyword: req.Keyword,
IsActive: req.IsActive,
},
)

Expand Down
3 changes: 1 addition & 2 deletions internal/handler/team_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,10 @@ func (h *TeamHandler) Update(c *fiber.Ctx) error {
)
}

h.teamService.Save(
h.teamService.UpdateByPrimaryId(
&entity.Team{
PrimaryID: req.PrimaryID,
Keyword: req.Keyword,
IsActive: req.IsActive,
},
)

Expand Down

0 comments on commit 51d3690

Please sign in to comment.