[server][cast] convert deviceCode input to upperCase

This commit is contained in:
Neeraj Gupta 2024-05-03 12:31:26 +05:30
parent 99b13d18b0
commit ad5cfdc6db

View file

@ -1,16 +1,16 @@
package api
import (
entity "github.com/ente-io/museum/ente/cast"
"github.com/ente-io/museum/pkg/controller/cast"
"net/http"
"strconv"
"github.com/ente-io/museum/ente"
entity "github.com/ente-io/museum/ente/cast"
"github.com/ente-io/museum/pkg/controller"
"github.com/ente-io/museum/pkg/controller/cast"
"github.com/ente-io/museum/pkg/utils/handler"
"github.com/ente-io/stacktrace"
"github.com/gin-gonic/gin"
"net/http"
"strconv"
"strings"
)
// CastHandler exposes request handlers for publicly accessible collections
@ -126,7 +126,7 @@ func (h *CastHandler) GetDiff(c *gin.Context) {
}
func getDeviceCode(c *gin.Context) string {
return c.Param("deviceCode")
return strings.ToUpper(c.Param("deviceCode"))
}
func (h *CastHandler) getFileForType(c *gin.Context, objectType ente.ObjectType) {