Skip to content

Commit

Permalink
fix(): repository status badges
Browse files Browse the repository at this point in the history
  • Loading branch information
Izak88 committed Oct 6, 2017
1 parent c911008 commit 6029393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/db/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function getRepositoryBadge(id: number): Promise<string> {
withRelated: [
{ 'builds': query => query.where('pr', null).orderBy('id', 'desc').limit(1) },
{ 'builds.runs': query => query.orderBy('id', 'desc').limit(1) },
'builds.runs.job_runs'
{ 'builds.runs.job_runs': query => query.groupBy('job_id', 'max(id)') }
]
} as any)
.then(repo => {
Expand Down

0 comments on commit 6029393

Please sign in to comment.