feat: order processing
feat: order commands result save/load
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
func InitHandler(c *gin.Context, executor CommandExecutor) {
|
||||
var init rest.Init
|
||||
if errorResponded(c, c.ShouldBindJSON(&init)) {
|
||||
if errorResponse(c, c.ShouldBindJSON(&init)) {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ func InitHandler(c *gin.Context, executor CommandExecutor) {
|
||||
}
|
||||
|
||||
s, err := executor.GenerateGame(races)
|
||||
if errorResponded(c, err) {
|
||||
if errorResponse(c, err) {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user