Skip to content

Commit

Permalink
upgrade open-leancloud-storage to v0.0.25
Browse files Browse the repository at this point in the history
  • Loading branch information
sdjdd committed Apr 20, 2021
1 parent b8abcb3 commit ca5472d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
5 changes: 2 additions & 3 deletions modules/CustomerService/Tickets.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,15 +578,14 @@ export function useTickets() {
query = query.where('objectId', 'in', searchMatchedTicketIds)
}

const ticketObjects = await query
const [ticketObjects, count] = await query
.include('author', 'assignee')
.limit(PAGE_SIZE)
.skip(parseInt(page) * PAGE_SIZE)
.orderBy('latestReply.updatedAt', 'desc')
.orderBy('updatedAt', 'desc')
.find()
.findAndCount()
setTickets(ticketObjects.map((t) => t.toJSON()))
const count = await query.count()
setTotalCount(count)
}, [filters])

Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"mailgun-js": "^0.18.0",
"mini-css-extract-plugin": "^1.3.5",
"moment": "^2.29.1",
"open-leancloud-storage": "0.0.24",
"open-leancloud-storage": "0.0.25",
"query-string": "^6.14.0",
"randomcolor": "^0.5.3",
"randomstring": "^1.1.5",
Expand Down

0 comments on commit ca5472d

Please sign in to comment.