Skip to content

Commit

Permalink
fix / runs table updated at
Browse files Browse the repository at this point in the history
  • Loading branch information
psiddharthdesign committed Jul 30, 2024
1 parent fa4c629 commit e0070c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const AllRunsTable = ({ runs, projectSlug }: { runs: Tables<'digger_runs'
<TableHead className="text-left">Run ID</TableHead>
<TableHead className="text-left">Commit ID</TableHead>
<TableHead className="text-left">Status</TableHead>
<TableHead className="text-left">Date</TableHead>
<TableHead className="text-left">Last updated</TableHead>
<TableHead className="text-left">User</TableHead>
</TableRow>
</TableHeader>
Expand Down Expand Up @@ -65,7 +65,7 @@ export const AllRunsTable = ({ runs, projectSlug }: { runs: Tables<'digger_runs'
{run.status.toUpperCase()}
</span>
</TableCell>
<TableCell>{moment(run.created_at).fromNow()}</TableCell>
<TableCell>{moment(run.updated_at).fromNow()}</TableCell>
<TableCell>{run.approval_author}</TableCell>
</motion.tr>
))
Expand Down
2 changes: 2 additions & 0 deletions src/data/user/runs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ export async function approveRun(
status: 'Approved',
approver_user_id: userId,
is_approved: true,
updated_at: new Date().toISOString(),
})
.eq('id', runId)
.select('id')
Expand All @@ -174,6 +175,7 @@ export async function rejectRun(
status: 'Discarded',
approver_user_id: userId,
is_approved: false,
updated_at: new Date().toISOString(),
})
.eq('id', runId)
.select('id')
Expand Down

0 comments on commit e0070c6

Please sign in to comment.