mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 19:14:23 +00:00
5a0876cf98
* fix: rename tables failed_event to failed_events * fix: use const
18 lines
443 B
Go
18 lines
443 B
Go
package view
|
|
|
|
import (
|
|
"github.com/caos/zitadel/internal/view/repository"
|
|
)
|
|
|
|
const (
|
|
errTable = "authz.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)
|
|
}
|