chore: upgrade dependencies

This commit is contained in:
Elias Schneider
2025-10-24 12:14:19 +02:00
parent 10d640385f
commit 6362ff9861
15 changed files with 1488 additions and 1585 deletions

View File

@@ -3,7 +3,8 @@ package model
import (
"database/sql/driver"
"encoding/json"
"fmt"
"github.com/pocket-id/pocket-id/backend/internal/utils"
)
type AuditLog struct {
@@ -47,14 +48,7 @@ func (e AuditLogEvent) Value() (driver.Value, error) {
}
func (d *AuditLogData) Scan(value any) error {
switch v := value.(type) {
case []byte:
return json.Unmarshal(v, d)
case string:
return json.Unmarshal([]byte(v), d)
default:
return fmt.Errorf("unsupported type: %T", value)
}
return utils.UnmarshalJSONFromDatabase(d, value)
}
func (d AuditLogData) Value() (driver.Value, error) {