Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Hueter57 committed Dec 6, 2024
1 parent f47dec7 commit b58ee1d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions router/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type TransactionNewCreate struct {
UpdatedAt time.Time `json:"updated_at"`
}

type TransactionCorrestion struct {
type TransactionCorrection struct {
ID uuid.UUID `json:"id"`
Amount int `json:"amount"`
Target string `json:"target"`
Expand Down Expand Up @@ -276,7 +276,7 @@ func (h Handlers) GetTransaction(c echo.Context) error {
UpdatedAt: tx.Group.UpdatedAt,
}
}
res := TransactionCorrestion{
res := TransactionCorrection{
ID: tx.ID,
Amount: tx.Amount,
Target: tx.Target,
Expand Down Expand Up @@ -334,7 +334,7 @@ func (h Handlers) PutTransaction(c echo.Context) error {
UpdatedAt: updated.Group.UpdatedAt,
}
}
res := TransactionCorrestion{
res := TransactionCorrection{
ID: updated.ID,
Amount: updated.Amount,
Target: updated.Target,
Expand Down
8 changes: 4 additions & 4 deletions router/transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ func TestHandlers_GetTransaction(t *testing.T) {
GetTransaction(c.Request().Context(), tx.ID).
Return(tx, nil)

var resOverview TransactionCorrestion
var resOverview TransactionCorrection
to := lo.Map(tx.Tags, func(modelTag *model.Tag, _ int) *TagOverview {
return &TagOverview{
ID: modelTag.ID,
Expand All @@ -879,7 +879,7 @@ func TestHandlers_GetTransaction(t *testing.T) {
CreatedAt: tx.Group.CreatedAt,
UpdatedAt: tx.Group.UpdatedAt,
}
resOverview = TransactionCorrestion{
resOverview = TransactionCorrection{
ID: tx.ID,
Amount: tx.Amount,
Target: tx.Target,
Expand Down Expand Up @@ -990,7 +990,7 @@ func TestHandlers_PutTransaction(t *testing.T) {
updatedTags, nil, nil).
Return(updated, nil)

var resOverview TransactionCorrestion
var resOverview TransactionCorrection
to := lo.Map(updated.Tags, func(modelTag *model.Tag, _ int) *TagOverview {
return &TagOverview{
ID: modelTag.ID,
Expand All @@ -1007,7 +1007,7 @@ func TestHandlers_PutTransaction(t *testing.T) {
CreatedAt: updated.Group.CreatedAt,
UpdatedAt: updated.Group.UpdatedAt,
}
resOverview = TransactionCorrestion{
resOverview = TransactionCorrection{
ID: tx.ID,
Amount: updated.Amount,
Target: updated.Target,
Expand Down

0 comments on commit b58ee1d

Please sign in to comment.