From 5d6399da24044fc77c4d200037429b080bae1a57 Mon Sep 17 00:00:00 2001 From: Silvan Date: Fri, 21 Apr 2023 08:58:04 +0200 Subject: [PATCH] fix(projection): implement GoStringer for postgres (#5716) --- internal/domain/device_auth.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/domain/device_auth.go b/internal/domain/device_auth.go index 79f30250f..da076663a 100644 --- a/internal/domain/device_auth.go +++ b/internal/domain/device_auth.go @@ -1,6 +1,7 @@ package domain import ( + "strconv" "time" "github.com/zitadel/zitadel/internal/eventstore/v1/models" @@ -55,6 +56,10 @@ func (s DeviceAuthState) Denied() bool { return s >= DeviceAuthStateDenied } +func (s DeviceAuthState) GoString() string { + return strconv.Itoa(int(s)) +} + // DeviceAuthCanceled is a subset of DeviceAuthState, allowed to // be used in the deviceauth.CanceledEvent. // The string type is used to make the eventstore more readable