mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-09-07 16:37:06 +08:00
change order for getAutoStartChatRecord, getMarkAsNotSuitRecord
This commit is contained in:
@@ -47,7 +47,10 @@ const payloadHandler = {
|
|||||||
const [data, totalItemCount] = await measureExecutionTime(
|
const [data, totalItemCount] = await measureExecutionTime(
|
||||||
userRepository.findAndCount({
|
userRepository.findAndCount({
|
||||||
skip: (pageNo - 1) * pageSize,
|
skip: (pageNo - 1) * pageSize,
|
||||||
take: pageSize
|
take: pageSize,
|
||||||
|
order: {
|
||||||
|
date: 'DESC'
|
||||||
|
}
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
return {
|
return {
|
||||||
@@ -69,7 +72,10 @@ const payloadHandler = {
|
|||||||
const [data, totalItemCount] = await measureExecutionTime(
|
const [data, totalItemCount] = await measureExecutionTime(
|
||||||
recordRepository.findAndCount({
|
recordRepository.findAndCount({
|
||||||
skip: (pageNo - 1) * pageSize,
|
skip: (pageNo - 1) * pageSize,
|
||||||
take: pageSize
|
take: pageSize,
|
||||||
|
order: {
|
||||||
|
date: 'DESC'
|
||||||
|
}
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user