Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hezhuozhuo committed Oct 26, 2023
1 parent b851aea commit 09575d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/tskv_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -1937,8 +1937,8 @@ func (*TSKVService) GetKVDataWithPageAndPageRecords(
Where("ts BETWEEN ? AND ? AND entity_id = ? AND key = ?", sTime, eTime, deviceId, key).
Offset((page - 1) * pageRecords).
Limit(pageRecords).
Find(&fields).
Order("ts desc")
Order("ts desc").
Find(&fields)
if result.Error != nil {
return fields, result.Error
}
Expand Down

0 comments on commit 09575d1

Please sign in to comment.