fix campaign rules

This commit is contained in:
Aditya Siregar
2025-09-18 13:39:37 +07:00
parent c7828a5cad
commit a520d0ed11
17 changed files with 733 additions and 164 deletions
+3 -3
View File
@@ -15,7 +15,7 @@ import (
)
type GamePlayProcessor struct {
gamePlayRepo *repository.GamePlayRepository
gamePlayRepo repository.GamePlayRepository
gameRepo *repository.GameRepository
gamePrizeRepo *repository.GamePrizeRepository
customerTokensRepo *repository.CustomerTokensRepository
@@ -23,7 +23,7 @@ type GamePlayProcessor struct {
}
func NewGamePlayProcessor(
gamePlayRepo *repository.GamePlayRepository,
gamePlayRepo repository.GamePlayRepository,
gameRepo *repository.GameRepository,
gamePrizeRepo *repository.GamePrizeRepository,
customerTokensRepo *repository.CustomerTokensRepository,
@@ -94,7 +94,7 @@ func (p *GamePlayProcessor) ListGamePlays(ctx context.Context, query *models.Lis
}
// Convert to responses
responses := mappers.ToGamePlayResponses(gamePlays)
responses := mappers.ToGamePlayResponsesFromPointers(gamePlays)
// Calculate pagination info
totalPages := int((total + int64(query.Limit) - 1) / int64(query.Limit))