From 6a4cd8c6727a4988225ac884c32f861c1c441735 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20B=C3=B6sche?= Date: Sun, 11 Jan 2026 22:46:49 +0100 Subject: [PATCH] FIX: Handle NULL transports in credentials using pq.StringArray --- go_cloud/internal/database/db.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/go_cloud/internal/database/db.go b/go_cloud/internal/database/db.go index 97fe538..f69df1f 100644 --- a/go_cloud/internal/database/db.go +++ b/go_cloud/internal/database/db.go @@ -7,6 +7,7 @@ import ( "time" "github.com/google/uuid" + "github.com/lib/pq" ) type DB struct { @@ -35,7 +36,7 @@ type Credential struct { SignCount int64 CreatedAt time.Time LastUsedAt *time.Time - Transports []string + Transports pq.StringArray } type AuthChallenge struct {