fix: orderby in members list (#4375)

Co-authored-by: LongYinan <lynweklm@gmail.com>
This commit is contained in:
Peng Xiao
2023-09-16 03:24:00 +08:00
committed by GitHub
parent 4577fb7e1a
commit b9656b1e22
2 changed files with 13 additions and 3 deletions

View File

@@ -217,9 +217,14 @@ export class WorkspaceResolver {
},
skip,
take: take || 8,
orderBy: {
createdAt: 'desc',
},
orderBy: [
{
createdAt: 'asc',
},
{
type: 'desc',
},
],
include: {
user: true,
},