Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrefshauge committed Oct 25, 2024
1 parent 0bb03f7 commit 85d8190
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 7 additions & 4 deletions backend/api/handlers/penaltyHandlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,13 @@ type GetPenaltyHistoryResponse struct {

// Get
//
// @Id get
// @Param ids query string true "ids"
// @Success 200 {array} PenaltyEntry
// @Router /penalty/get [get]
// @Id get
// @Schemes
// @Description Get penalties by ids
// @Tags penalty
// @Param ids query string true "ids"
// @Success 200 {array} PenaltyEntry
// @Router /penalty/get [get]
func (db *DbContext) Get(ctx *gin.Context) {
ids := ctx.Param("ids")
idList := strings.Split(ids, ",")
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/hooks/appContext.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { createContext, ReactNode, SetStateAction, useContext } from 'react'
import { UserPublic, Team, Notification } from '../openapi/requests'
import {
useDefaultServiceGet,
useNotificationServiceGetFiltered,
usePenaltyServiceGet,
useTeamServiceGetTeamsByUserId,
useUserServiceGetUser,
} from '../openapi/queries'
Expand Down

0 comments on commit 85d8190

Please sign in to comment.