Merge branch 'master' of ssh://github.com/micro/services

This commit is contained in:
Asim Aslam
2022-02-09 15:08:22 +00:00
43 changed files with 565 additions and 64 deletions

View File

@@ -514,7 +514,7 @@ func (s *User) DeleteData(ctx context.Context, request *adminpb.DeleteDataReques
return err
}
if len(request.TenantId) == 0 {
if len(request.TenantId) < 10 { // deliberate length check so we don't delete all the things
return errors.BadRequest("user.DeleteData", "Missing tenant ID")
}
return s.domain.DeleteTenantData(request.TenantId)