Add note regarding rollback

This commit is contained in:
Benedikt Kulmann
2020-10-15 07:19:14 +02:00
committed by A.Unger
parent f6d3425de8
commit 441e7156f4

View File

@@ -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{