time desc order

pull/1097/head
Rhythm 2021-12-20 16:21:56 +05:30
parent 97b58c3f91
commit f0eb5cbb96
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ func FindAll(vars map[string]string ) (*[]Downtime, error) {
}else {
skip = 0
}
q = q.Order("id DESC")
q = q.Order("start DESC")
q = q.Limit((int)(count)).Offset((int)(skip)).Find(&downtime)
return &downtime, q.Error()
}