Skip to content

Commit

Permalink
PR Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JonSpight committed Jan 13, 2025
1 parent a7757af commit 37784db
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/factory/move_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,6 @@ func BuildMove(db *pop.Connection, customs []Customization, traits []Trait) mode
move.CloseoutOfficeID = &closeoutOffice.ID
}

if scAssignedUserResult != nil {
move.SCAssignedUser = &scAssignedUser
move.SCAssignedID = &scAssignedUser.ID
}

if tooAssignedUserResult != nil {
move.TOOAssignedUser = &tooAssignedUser
move.TOOAssignedID = &tooAssignedUser.ID
Expand All @@ -125,6 +120,11 @@ func BuildMove(db *pop.Connection, customs []Customization, traits []Trait) mode
move.CounselingOfficeID = &counselingOffice.ID
}

if scAssignedUserResult != nil {
move.SCAssignedUser = &scAssignedUser
move.SCAssignedID = &scAssignedUser.ID
}

// Overwrite values with those from assertions
testdatagen.MergeModels(&move, cMove)

Expand Down

0 comments on commit 37784db

Please sign in to comment.