fix printf types

was causing builds to fail on ci.
This commit is contained in:
Harvey Tindall
2025-12-01 12:55:24 +00:00
parent 320e9cd9d0
commit 70ee98f9f0
2 changed files with 4 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ func (app *appContext) SetJellyseerrProfile(gc *gin.Context) {
} }
u, err := app.js.UserByID(jellyseerrID) u, err := app.js.UserByID(jellyseerrID)
if err != nil { if err != nil {
app.err.Printf(lm.FailedGetUser, jellyseerrID, lm.Jellyseerr, err) app.err.Printf(lm.FailedGetUser, strconv.FormatInt(jellyseerrID, 10), lm.Jellyseerr, err)
respond(500, "Couldn't get user", gc) respond(500, "Couldn't get user", gc)
return return
} }

View File

@@ -4,6 +4,7 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"net/url" "net/url"
"strconv"
"time" "time"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
@@ -199,12 +200,12 @@ func (app *appContext) CreateProfile(gc *gin.Context) {
if req.Jellyseerr && app.config.Section("jellyseerr").Key("enabled").MustBool(false) { if req.Jellyseerr && app.config.Section("jellyseerr").Key("enabled").MustBool(false) {
user, err := app.js.MustGetUser(req.ID) user, err := app.js.MustGetUser(req.ID)
if err != nil { if err != nil {
app.err.Printf(lm.FailedGetUser, user.Name, lm.Jellyseerr, err) app.err.Printf(lm.FailedGetUser, user.Name(), lm.Jellyseerr, err)
} else { } else {
profile.Jellyseerr.User = user.UserTemplate profile.Jellyseerr.User = user.UserTemplate
n, err := app.js.GetNotificationPreferencesByID(user.ID) n, err := app.js.GetNotificationPreferencesByID(user.ID)
if err != nil { if err != nil {
app.err.Printf(lm.FailedGetJellyseerrNotificationPrefs, user.ID, err) app.err.Printf(lm.FailedGetJellyseerrNotificationPrefs, strconv.FormatInt(user.ID, 10), err)
} else { } else {
profile.Jellyseerr.Notifications = n.NotificationsTemplate profile.Jellyseerr.Notifications = n.NotificationsTemplate
profile.Jellyseerr.Enabled = true profile.Jellyseerr.Enabled = true