Skip to content

Commit

Permalink
Fix tasks order to retreive registering task when populating dashboar…
Browse files Browse the repository at this point in the history
…d database
  • Loading branch information
tahmidrahman-dsi committed May 7, 2024
1 parent b5b4114 commit b82add0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/dashboards/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const registrations = ({ lastUpdatedAt }: { lastUpdatedAt: string }) => ({
},
{
$addFields: {
allTasks: { $concatArrays: ['$task', '$task_history'] }
allTasks: { $concatArrays: ['$task_history', '$task'] }
}
},
{
Expand Down

0 comments on commit b82add0

Please sign in to comment.