UPDATE: Some logic change
All checks were successful
Build and Release / release (push) Successful in 1m1s

This commit is contained in:
2026-04-08 13:47:32 +07:00
parent 82241b432e
commit 9209d9fb22
6 changed files with 32 additions and 12 deletions

View File

@@ -153,6 +153,9 @@ func (m *mediaService) SearchMedia(ctx context.Context, dto *request.SearchMedia
if dto.Page < 1 {
dto.Page = 1
}
if dto.Limit == 0 {
dto.Limit = 20
}
offset := (dto.Page - 1) * dto.Limit
arg := sqlc.SearchMediasParams{