Add some comments to user deletion

This commit is contained in:
Miguel de la Cruz 2021-09-13 23:22:04 +02:00
parent 104068e172
commit 4c7e7f4add

View file

@ -110,6 +110,9 @@ func (us *UserStore) List() ([]*model.User, error) {
}
func (us *UserStore) DeleteByUsername(username string) error {
// ToDo: add transaction
// ToDo: manage user owned games, probably at app level
user, err := us.GetByUsername(username)
if err != nil {
return fmt.Errorf("cannot get user for deletion: %w", err)