mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-30 03:27:50 +00:00
5a0876cf98
* fix: rename tables failed_event to failed_events * fix: use const
18 lines
442 B
Go
18 lines
442 B
Go
package view
|
|
|
|
import (
|
|
"github.com/caos/zitadel/internal/view/repository"
|
|
)
|
|
|
|
const (
|
|
errTable = "auth.failed_events"
|
|
)
|
|
|
|
func (v *View) saveFailedEvent(failedEvent *repository.FailedEvent) error {
|
|
return repository.SaveFailedEvent(v.Db, errTable, failedEvent)
|
|
}
|
|
|
|
func (v *View) latestFailedEvent(viewName string, sequence uint64) (*repository.FailedEvent, error) {
|
|
return repository.LatestFailedEvent(v.Db, errTable, viewName, sequence)
|
|
}
|