mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-16 12:58:00 +00:00
29 lines
676 B
Go
29 lines
676 B
Go
|
package setup
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
_ "embed"
|
||
|
|
||
|
"github.com/zitadel/zitadel/internal/database"
|
||
|
"github.com/zitadel/zitadel/internal/eventstore"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
//go:embed 38.sql
|
||
|
backChannelLogoutCurrentState string
|
||
|
)
|
||
|
|
||
|
type BackChannelLogoutNotificationStart struct {
|
||
|
dbClient *database.DB
|
||
|
esClient *eventstore.Eventstore
|
||
|
}
|
||
|
|
||
|
func (mig *BackChannelLogoutNotificationStart) Execute(ctx context.Context, e eventstore.Event) error {
|
||
|
_, err := mig.dbClient.ExecContext(ctx, backChannelLogoutCurrentState, e.Sequence(), e.CreatedAt(), e.Position())
|
||
|
return err
|
||
|
}
|
||
|
|
||
|
func (mig *BackChannelLogoutNotificationStart) String() string {
|
||
|
return "38_back_channel_logout_notification_start_"
|
||
|
}
|