Fixed labelmaker pagination on PostgreSQL (#779)

Fixes #753
This commit is contained in:
LunarEclipse363
2025-06-09 21:23:56 +02:00
committed by GitHub
parent 1d3d7b4788
commit 04df4d8a08

View File

@@ -8,5 +8,10 @@ type PaginationResult[T any] struct {
}
func calculateOffset(page, pageSize int) int {
return (page - 1) * pageSize
offset := (page - 1) * pageSize
if offset < 0 {
return 0
} else {
return offset
}
}