fix: state machine

This commit is contained in:
徐聪
2022-07-30 23:11:45 +08:00
parent b9f1468ae2
commit 3712eae7f5
10 changed files with 311 additions and 184 deletions

View File

@@ -191,7 +191,7 @@ func (api *apiHandler) Start(w http.ResponseWriter, r *http.Request) {
return
}
req := StartRequestBody{
Profile: *api.boomer.GetProfile(),
Profile: *boomer.NewProfile(),
}
err = mapstructure.Decode(data, &req)
if err != nil {