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