diff options
Diffstat (limited to '')
-rw-r--r-- | internal/thing/handler.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/thing/handler.go b/internal/thing/handler.go index 5166157..65bc871 100644 --- a/internal/thing/handler.go +++ b/internal/thing/handler.go @@ -227,7 +227,8 @@ func (h *Handler) GetThingHistory(c *gin.Context) { c.JSON(400, gin.H{"error": "Invalid offset"}) return } - history, err := h.tRepo.GetThingHistoryWithOffset(c, thingID, offset, 10) + + history, err := h.tRepo.GetThingHistoryWithOffset(c, thingID, offset) if err != nil { c.JSON(500, gin.H{"error": err.Error()}) return |