More deleteData endpoint impls (#362)

This commit is contained in:
Dominic Wong
2022-02-02 16:50:11 +00:00
committed by GitHub
parent e0bb9a8765
commit ba77f7b2f4
12 changed files with 125 additions and 13 deletions

View File

@@ -451,7 +451,7 @@ func (e *Db) DeleteData(ctx context.Context, request *adminpb.DeleteDataRequest,
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(method, "Missing tenant ID")
}