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

@ -56,7 +56,7 @@ func (r *Register) Post(c echo.Context) error {
}
// Attempt creating the user
u, err := r.Container.Ent.User.
u, err := r.Container.ORM.User.
Create().
SetUsername(form.Username).
SetPassword(string(pwHash)).