Cleanup container init.

This commit is contained in:
mikestefanello 2021-12-11 13:18:32 -05:00
parent 8657380530
commit e5038f7bbf
3 changed files with 27 additions and 16 deletions

View file

@ -31,7 +31,7 @@ func (l *Login) Post(c echo.Context) error {
return l.Get(c)
}
u, err := l.Container.Ent.User.
u, err := l.Container.ORM.User.
Query().
Where(user.Username(name)).
First(c.Request().Context())