mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-07 22:37:40 +00:00
fix(projection): implement GoStringer for postgres (#5716)
This commit is contained in:
parent
a9d6e92873
commit
5d6399da24
@ -1,6 +1,7 @@
|
|||||||
package domain
|
package domain
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/zitadel/zitadel/internal/eventstore/v1/models"
|
"github.com/zitadel/zitadel/internal/eventstore/v1/models"
|
||||||
@ -55,6 +56,10 @@ func (s DeviceAuthState) Denied() bool {
|
|||||||
return s >= DeviceAuthStateDenied
|
return s >= DeviceAuthStateDenied
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (s DeviceAuthState) GoString() string {
|
||||||
|
return strconv.Itoa(int(s))
|
||||||
|
}
|
||||||
|
|
||||||
// DeviceAuthCanceled is a subset of DeviceAuthState, allowed to
|
// DeviceAuthCanceled is a subset of DeviceAuthState, allowed to
|
||||||
// be used in the deviceauth.CanceledEvent.
|
// be used in the deviceauth.CanceledEvent.
|
||||||
// The string type is used to make the eventstore more readable
|
// The string type is used to make the eventstore more readable
|
||||||
|
Loading…
x
Reference in New Issue
Block a user