Skip to content

Commit

Permalink
address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ecrupper committed Jun 14, 2023
1 parent 31620a0 commit 9776f88
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion database/build/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ func (e *engine) CreateBuild(b *library.Build) (*library.Build, error) {
return nil, err
}

// crop build if any columns are too large
build = build.Crop()

// send query to the database
result := e.client.Table(constants.TableBuild).Create(build.Crop())
result := e.client.Table(constants.TableBuild).Create(build)

return build.ToLibrary(), result.Error
}

0 comments on commit 9776f88

Please sign in to comment.