Skip to content

Commit 768f74c

Browse files
Get the latest bio on the summary page (#839)
1 parent e943b33 commit 768f74c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Application/Features/Participants/Queries/GetParticipantSummary.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,15 @@ orderby review.Created
103103
BioSummary =
104104
(from bio in db.ParticipantBios
105105
where bio.ParticipantId == participantId
106+
orderby bio.Created descending
106107
select new BioSummaryDto
107108
{
108109
BioCreator = bio.CreatedBy,
109110
BioDate = bio.Created,
110111
BioId = bio.Id,
111112
BioStatus = bio.Status
112-
}).FirstOrDefault(),
113+
})
114+
.FirstOrDefault(),
113115
LatestPri =
114116
(from pri in db.PRIs
115117
where pri.ParticipantId == participantId

0 commit comments

Comments
 (0)