Add some comments to user deletion
This commit is contained in:
parent
104068e172
commit
4c7e7f4add
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue