diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-28 01:40:38 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-28 01:40:38 +0300 |
| commit | 0341c349c176d1a0db129560dd4ecc3c4ca9eb73 (patch) | |
| tree | d8e745dea7e10ca3bb327e3bcfd049b117900740 /backend/handlers | |
| parent | feat: revise logging in other handlers (#55) (diff) | |
| download | lphub-0341c349c176d1a0db129560dd4ecc3c4ca9eb73.tar.gz lphub-0341c349c176d1a0db129560dd4ecc3c4ca9eb73.tar.bz2 lphub-0341c349c176d1a0db129560dd4ecc3c4ca9eb73.zip | |
fix: 0 score count summaries give false binding required error (#104)
Former-commit-id: 41cf94a810c83b0eb4d54996b727bb24910994b9
Diffstat (limited to 'backend/handlers')
| -rw-r--r-- | backend/handlers/mod.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/handlers/mod.go b/backend/handlers/mod.go index 95b37c8..f55784a 100644 --- a/backend/handlers/mod.go +++ b/backend/handlers/mod.go | |||
| @@ -15,7 +15,7 @@ type CreateMapSummaryRequest struct { | |||
| 15 | Description string `json:"description" binding:"required"` | 15 | Description string `json:"description" binding:"required"` |
| 16 | Showcase string `json:"showcase"` | 16 | Showcase string `json:"showcase"` |
| 17 | UserName string `json:"user_name" binding:"required"` | 17 | UserName string `json:"user_name" binding:"required"` |
| 18 | ScoreCount *int `json:"score_count" binding:"required"` | 18 | ScoreCount *int `json:"score_count"` |
| 19 | RecordDate time.Time `json:"record_date" binding:"required"` | 19 | RecordDate time.Time `json:"record_date" binding:"required"` |
| 20 | } | 20 | } |
| 21 | 21 | ||
| @@ -24,7 +24,7 @@ type EditMapSummaryRequest struct { | |||
| 24 | Description string `json:"description" binding:"required"` | 24 | Description string `json:"description" binding:"required"` |
| 25 | Showcase string `json:"showcase"` | 25 | Showcase string `json:"showcase"` |
| 26 | UserName string `json:"user_name" binding:"required"` | 26 | UserName string `json:"user_name" binding:"required"` |
| 27 | ScoreCount int `json:"score_count" binding:"required"` | 27 | ScoreCount int `json:"score_count"` |
| 28 | RecordDate time.Time `json:"record_date" binding:"required"` | 28 | RecordDate time.Time `json:"record_date" binding:"required"` |
| 29 | } | 29 | } |
| 30 | 30 | ||