Skip to content

Commit

Permalink
fix: handle err
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Apr 30, 2023
1 parent 7906570 commit dbd7f65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/stat/commits.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ func (w *Commit) Update(ctx context.Context) error {
}

tx, err := w.db.Tx(ctx)
if err != nil {
return errors.Wrap(err, "begin tx")
}

all, err := tx.Repository.Query().WithOrganization().All(ctx)
if err != nil {
Expand Down

0 comments on commit dbd7f65

Please sign in to comment.