guodj %!s(int64=4) %!d(string=hai) anos
pai
achega
cc255f90ff
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      service/meeting/meeting.go

+ 1 - 1
service/meeting/meeting.go

@@ -171,7 +171,7 @@ func (m Service) Exists(id int) error {
 
 func (m Service) ShortList() ([]model.ShortMeeting, error) {
 	list := make([]model.ShortMeeting, 0)
-	res, err := m.Dao.M.Order(m.Dao.Columns.Sort).FindAll()
+	res, err := m.Dao.M.Order(m.Dao.Columns.Sort, "DESC").FindAll()
 	if err != nil {
 		return nil, err
 	}