From 4c7e7f4adda43ea9d90600e821322e20c21f2587 Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Mon, 13 Sep 2021 23:22:04 +0200 Subject: [PATCH] Add some comments to user deletion --- server/services/store/user.go | 3 +++ 1 file changed, 3 insertions(+) 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)