mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-10-11 12:45:21 +01:00
Update src/Common/dataAccess/deleteDocument.ts
Co-authored-by: Ashley Stanton-Nurse <[email protected]>
This commit is contained in:
co-authored by
Ashley Stanton-Nurse
parent
99e51047d1
commit
6d1661e23e
@@ -64,7 +64,7 @@ export const deleteDocuments = async (collection: CollectionBase, documentIds: D
|
||||
|
||||
const allResult = await Promise.all(promiseArray);
|
||||
const flatAllResult = Array.prototype.concat.apply([], allResult);
|
||||
logConsoleInfo(`Successfully deleted ${getEntityName(true)}: ${flatAllResult.length} out of ${nbDocuments}`);
|
||||
logConsoleInfo(`Successfully deleted ${getEntityName(flatAllResult.length > 1)}: ${flatAllResult.length} out of ${nbDocuments}`);
|
||||
// TODO: handle case result.length != nbDocuments
|
||||
return flatAllResult;
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user