mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-28 04:33:42 +08:00
[offers][chore] return comments in reverse chronological order
This commit is contained in:
@ -25,15 +25,21 @@ export const offersCommentsRouter = createRouter()
|
||||
include: {
|
||||
user: true,
|
||||
},
|
||||
orderBy: {
|
||||
createdAt: 'desc'
|
||||
}
|
||||
},
|
||||
replyingTo: true,
|
||||
user: true,
|
||||
},
|
||||
orderBy: {
|
||||
createdAt: 'desc'
|
||||
}
|
||||
},
|
||||
},
|
||||
where: {
|
||||
id: input.profileId,
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
const discussions: OffersDiscussion = {
|
||||
|
Reference in New Issue
Block a user