changed property name to UserWasDeleted and added an assert for it

This commit is contained in:
Torkel Ödegaard
2018-10-11 12:20:53 -07:00
parent 9585dc7825
commit b671b9704f
4 changed files with 6 additions and 5 deletions
+1
View File
@@ -191,6 +191,7 @@ func TestAccountDataAccess(t *testing.T) {
remCmd := m.RemoveOrgUserCommand{OrgId: ac1.OrgId, UserId: ac2.Id, ShouldDeleteOrphanedUser: true}
err = RemoveOrgUser(&remCmd)
So(err, ShouldBeNil)
So(remCmd.UserWasDeleted, ShouldBeTrue)
err = GetSignedInUser(&m.GetSignedInUserQuery{UserId: ac2.Id})
So(err, ShouldEqual, m.ErrUserNotFound)
+1 -1
View File
@@ -195,7 +195,7 @@ func RemoveOrgUser(cmd *m.RemoveOrgUserCommand) error {
return err
}
cmd.UserWasRemoved = true
cmd.UserWasDeleted = true
}
return nil