This commit is contained in:
etsweeney 2022-12-09 08:27:51 -06:00 committed by GitHub
parent 4f5786b087
commit 65ef1e70c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,7 @@ func ApiSetConfig(w http.ResponseWriter, r *http.Request) {
// Confirm username length
if config_payload.DataType == "" {
log.Println("Cannot set new config. Invalid data type recieved.")
log.Println("Cannot set new config. Invalid data type received.")
utilities.RespondDefaultError(w, r, errors.New("Data type specified is invalid."), 400)
return
}
@ -142,7 +142,7 @@ func ApiSetConfig(w http.ResponseWriter, r *http.Request) {
time.Local = new_time
} else {
log.Println("Cannot set new config. Invalid data type recieved. Type: " + config_payload.DataType)
log.Println("Cannot set new config. Invalid data type received. Type: " + config_payload.DataType)
utilities.RespondDefaultError(w, r, errors.New("Failed to save new Wrapperr confguration."), 400)
return
}