suncloud il y a 1 an
Parent
commit
07e3ae5e1e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/api/test.go

+ 1 - 1
src/api/test.go

@@ -84,7 +84,7 @@ func TestList(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 		Page:        page,
 		Size:        size,
 		Query:       query,
-		// Sort:        bson.D{bson.E{Key: "sort", Value: 1}, bson.E{Key: "createTime", Value: 1}},
+		Sort:        bson.M{"createTime": -1},
 	})
 }