Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
crlssn committed Nov 23, 2024
1 parent 6f2ee49 commit 162b088
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/backend/pkg/repo/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/volatiletech/sqlboiler/v4/queries/qm"
"golang.org/x/crypto/bcrypt"

orm "github.com/crlssn/getstronger/apps/backend/pkg/orm"
"github.com/crlssn/getstronger/apps/backend/pkg/orm"
)

type Repo struct {
Expand Down
4 changes: 2 additions & 2 deletions apps/backend/pkg/test/testdb/factory_routine.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (f *Factory) NewRoutine(opts ...RoutineOpt) *orm.Routine {
Title: "",
CreatedAt: time.Time{},
DeletedAt: null.Time{},
ExerciseOrder: null.JSON{},
ExerciseOrder: nil,
}

for _, opt := range opts {
Expand Down Expand Up @@ -59,6 +59,6 @@ func RoutineExerciseOrder(exerciseIDs []string) RoutineOpt {
if err != nil {
panic(fmt.Errorf("failed to marshal exercise order: %w", err))
}
m.ExerciseOrder = null.JSONFrom(bytes)
m.ExerciseOrder = bytes
}
}

0 comments on commit 162b088

Please sign in to comment.