chore: update prod schema

This commit is contained in:
Steven
2022-08-20 11:36:24 +08:00
parent f06a3d171b
commit 68b30063a9
2 changed files with 13 additions and 2 deletions

View File

@ -3,7 +3,7 @@ package server
import (
"encoding/json"
"fmt"
"io/ioutil"
"io"
"net/http"
"strconv"
@ -39,7 +39,7 @@ func (s *Server) registerResourceRoutes(g *echo.Group) {
}
defer src.Close()
fileBytes, err := ioutil.ReadAll(src)
fileBytes, err := io.ReadAll(src)
if err != nil {
return echo.NewHTTPError(http.StatusInternalServerError, "Failed to read file").SetInternal(err)
}