Skip to content

Commit fe40a55

Browse files
committed
Fix order in dragon endpoint
1 parent d8b484e commit fe40a55

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

.editorconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ indent_style = space
55
indent_size = 2
66
end_of_line = lf
77
charset = utf-8
8-
trim_trailing_whitespace = true

src/controllers/v3/dragons.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module.exports = {
1313
.collection('dragon')
1414
.find({})
1515
.project(project(ctx.request.query))
16+
.sort({ id: 1 })
1617
.skip(offset(ctx.request.query))
1718
.limit(limit(ctx.request.query))
1819
.toArray();

0 commit comments

Comments
 (0)