diff --git a/server/services/store/user.go b/server/services/store/user.go index 17b0f30..382dac8 100644 --- a/server/services/store/user.go +++ b/server/services/store/user.go @@ -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)