From 441e7156f4b8c1c4212e66e97480219a89f30f77 Mon Sep 17 00:00:00 2001 From: Benedikt Kulmann Date: Thu, 15 Oct 2020 07:19:14 +0200 Subject: [PATCH] Add note regarding rollback --- accounts/pkg/service/v0/accounts.go | 1 + 1 file changed, 1 insertion(+) diff --git a/accounts/pkg/service/v0/accounts.go b/accounts/pkg/service/v0/accounts.go index 31c50c94a3..d6cfdc510d 100644 --- a/accounts/pkg/service/v0/accounts.go +++ b/accounts/pkg/service/v0/accounts.go @@ -338,6 +338,7 @@ func (s Service) CreateAccount(ctx context.Context, in *proto.CreateAccountReque } } + // Note: creating the group needs to be the last step. Otherwise rollbackCreateAccount would need to rollback the group as well. group := proto.Group{} err = s.CreateGroup(ctx, &proto.CreateGroupRequest{ Group: &proto.Group{