diff --git a/server/handlers/vendors/vendorAlist/list.go b/server/handlers/vendors/vendorAlist/list.go index 4324924..481b74e 100644 --- a/server/handlers/vendors/vendorAlist/list.go +++ b/server/handlers/vendors/vendorAlist/list.go @@ -66,14 +66,14 @@ func List(ctx *gin.Context) { return } if total == 0 { - ctx.JSON(http.StatusBadRequest, model.NewApiErrorStringResp("alist server id not found")) + ctx.JSON(http.StatusBadRequest, model.NewApiErrorStringResp("alist server not found")) return } ev, err := db.GetAlistVendors(user.ID, append(socpes, db.Paginate(page, size))...) if err != nil { if errors.Is(err, db.ErrNotFound("vendor")) { - ctx.JSON(http.StatusBadRequest, model.NewApiErrorStringResp("alist server id not found")) + ctx.JSON(http.StatusBadRequest, model.NewApiErrorStringResp("alist server not found")) return } ctx.AbortWithStatusJSON(http.StatusInternalServerError, model.NewApiErrorResp(err)) @@ -126,7 +126,7 @@ AlistFSListResp: aucd, err := user.AlistCache().LoadOrStore(ctx, serverID) if err != nil { if errors.Is(err, db.ErrNotFound("vendor")) { - ctx.JSON(http.StatusBadRequest, model.NewApiErrorStringResp("alist server id not found")) + ctx.JSON(http.StatusBadRequest, model.NewApiErrorStringResp("alist server not found")) return } diff --git a/server/handlers/vendors/vendorAlist/me.go b/server/handlers/vendors/vendorAlist/me.go index b75f2b0..9605ea2 100644 --- a/server/handlers/vendors/vendorAlist/me.go +++ b/server/handlers/vendors/vendorAlist/me.go @@ -27,7 +27,7 @@ func Me(ctx *gin.Context) { aucd, err := user.AlistCache().LoadOrStore(ctx, serverID) if err != nil { if errors.Is(err, db.ErrNotFound("vendor")) { - ctx.JSON(http.StatusBadRequest, model.NewApiErrorStringResp("alist server id not found")) + ctx.JSON(http.StatusBadRequest, model.NewApiErrorStringResp("alist server not found")) return } ctx.AbortWithStatusJSON(http.StatusInternalServerError, model.NewApiErrorResp(err)) diff --git a/server/handlers/vendors/vendorEmby/list.go b/server/handlers/vendors/vendorEmby/list.go index be2f654..8ceeafd 100644 --- a/server/handlers/vendors/vendorEmby/list.go +++ b/server/handlers/vendors/vendorEmby/list.go @@ -67,14 +67,14 @@ func List(ctx *gin.Context) { return } if total == 0 { - ctx.JSON(http.StatusBadRequest, model.NewApiErrorStringResp("emby server id not found")) + ctx.JSON(http.StatusBadRequest, model.NewApiErrorStringResp("emby server not found")) return } ev, err := db.GetEmbyVendors(user.ID, append(socpes, db.Paginate(page, size))...) if err != nil { if errors.Is(err, db.ErrNotFound("vendor")) { - ctx.JSON(http.StatusBadRequest, model.NewApiErrorStringResp("emby server id not found")) + ctx.JSON(http.StatusBadRequest, model.NewApiErrorStringResp("emby server not found")) return } ctx.AbortWithStatusJSON(http.StatusInternalServerError, model.NewApiErrorResp(err)) @@ -124,7 +124,7 @@ EmbyFSListResp: aucd, err := user.EmbyCache().LoadOrStore(ctx, serverID) if err != nil { if errors.Is(err, db.ErrNotFound("vendor")) { - ctx.JSON(http.StatusBadRequest, model.NewApiErrorStringResp("emby server id not found")) + ctx.JSON(http.StatusBadRequest, model.NewApiErrorStringResp("emby server not found")) return } ctx.AbortWithStatusJSON(http.StatusInternalServerError, model.NewApiErrorResp(err)) diff --git a/server/handlers/vendors/vendorEmby/me.go b/server/handlers/vendors/vendorEmby/me.go index a5ea47f..9ec2fc8 100644 --- a/server/handlers/vendors/vendorEmby/me.go +++ b/server/handlers/vendors/vendorEmby/me.go @@ -27,7 +27,7 @@ func Me(ctx *gin.Context) { eucd, err := user.EmbyCache().LoadOrStore(ctx, serverID) if err != nil { if errors.Is(err, db.ErrNotFound("vendor")) { - ctx.JSON(http.StatusBadRequest, model.NewApiErrorStringResp("emby server id not found")) + ctx.JSON(http.StatusBadRequest, model.NewApiErrorStringResp("emby server not found")) return } ctx.AbortWithStatusJSON(http.StatusInternalServerError, model.NewApiErrorResp(err))