Skip to content

Commit

Permalink
Merge pull request #7016 from transcom/mb-fix-devseed
Browse files Browse the repository at this point in the history
Fix createHHGWithPaymentServiceItems in devseed
  • Loading branch information
monfresh authored Jul 20, 2021
2 parents 015ba15 + 84a8484 commit 0074d70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion migrations/app/migrations_manifest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -650,5 +650,5 @@
20210629133827_remove_char_limit_payment_service_item_rejection_reason.up.sql
20210630143013_add_demo_users.up.sql
20210706214857_felipe_cac.up.sql
20210714221936_change_cubic_feet_crating_to_decimal.up.sql
20210713232711_remove_can_stand_alone_parameter.up.sql
20210714221936_change_cubic_feet_crating_to_decimal.up.sql
2 changes: 2 additions & 0 deletions pkg/testdatagen/scenario/devseed.go
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,8 @@ func createHHGWithPaymentServiceItems(db *pop.Connection, primeUploader *uploade
// called for domestic destination SIT delivery service item
planner.On("Zip3TransitDistance", "94535", "90210").Return(348, nil).Once()

serviceItemCreator.SetConnection(db)

for _, shipment := range []models.MTOShipment{longhaulShipment, shorthaulShipment} {
shipmentUpdater := mtoshipment.NewMTOShipmentStatusUpdater(db, queryBuilder, serviceItemCreator, planner)
_, updateErr := shipmentUpdater.UpdateMTOShipmentStatus(shipment.ID, models.MTOShipmentStatusApproved, nil, etag.GenerateEtag(shipment.UpdatedAt))
Expand Down

0 comments on commit 0074d70

Please sign in to comment.