fix(projection): implement GoStringer for postgres (#5716)

This commit is contained in:
Silvan
2023-04-21 08:58:04 +02:00
committed by GitHub
parent a9d6e92873
commit 5d6399da24

View File

@@ -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