Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wy65701436 committed Jul 30, 2024
1 parent 56904f8 commit c93c0f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pkg/artifact/dao/dao.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,9 @@ func (d *dao) ListWithLatest(ctx context.Context, query *q.Query, pagination boo
) latest ON a.repository_name = latest.repository_name AND a.push_time = latest.latest_push_time %s;`

if pagination {
sql = fmt.Sprintf(sql, "ORDER BY a.push_time DESC LIMIT ? OFFSET ?")
sql = fmt.Sprintf(sql, "%s", "ORDER BY a.push_time DESC LIMIT ? OFFSET ?")
} else {
sql = fmt.Sprintf(sql, "")
sql = fmt.Sprintf(sql, "%s", "")
}

var attributionValue interface{}
Expand Down

0 comments on commit c93c0f9

Please sign in to comment.