Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controller data fix #4

Merged
merged 2 commits into from
Nov 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions controllers/dto/game.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ func MapGameToDto(game *games.Game) *GameDto {
type GameEditDto struct {
PlatformId uuid.UUID `json:"platformId" binding:"required"`
Title string `json:"title" binding:"required,max=500"`
Owned bool `json:"owned" binding:"required"`
Owned bool `json:"owned"`
ReleaseDate *time.Time `json:"releaseDate"`
Released bool `json:"released" binding:"required"`
Released bool `json:"released"`
}

func MapGameEditDtoToObject(id uuid.UUID, game *GameEditDto) *games.Game {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/KowalskiPiotr98/ludivault

go 1.23.1
go 1.23

require (
github.com/KowalskiPiotr98/gotabase v0.3.0
Expand Down