Skip to content

Commit

Permalink
fix: duplicated create sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
scopsy committed Dec 27, 2024
1 parent 0f2b7a2 commit a890879
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function ActivityJobItem({ job, isFirst, isLast }: ActivityJobItemProps)
{getJobIcon(job.type)}
</div>
</div>
<span className="text-foreground-950 text-xs capitalize">{formatJobType(job.type)}</span>
<span className="text-foreground-950 text-xs capitalize">{job?.step?.name || formatJobType(job.type)}</span>
</div>

<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export class NotificationRepository extends BaseRepository<
.populate({
options: {
readPreference: 'secondaryPreferred',
sort: { createdAt: 1 },
sort: { createdAt: 1, _parentId: 1 },
},
path: 'jobs',
match: {
Expand All @@ -120,7 +120,7 @@ export class NotificationRepository extends BaseRepository<
$nin: [StepTypeEnum.TRIGGER],
},
},
select: 'createdAt digest payload overrides to tenant actorId providerId step status type updatedAt',
select: 'createdAt digest payload overrides to tenant actorId providerId step status type updatedAt _parentId',
populate: [
{
path: 'executionDetails',
Expand Down

0 comments on commit a890879

Please sign in to comment.