mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-06 12:47:37 +00:00
fix(projection): implement GoStringer for postgres (#5716)
This commit is contained in:
parent
a9d6e92873
commit
5d6399da24
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user