aeria-populate 0.0.21 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -143,7 +143,7 @@ export const main = async () => {
|
|
|
143
143
|
if (opts.dropCollections) {
|
|
144
144
|
for (const collection of collections) {
|
|
145
145
|
if ((await db.listCollections().toArray()).some((subject) => collection === subject.name)) {
|
|
146
|
-
await db.collection(collection).
|
|
146
|
+
await db.collection(collection).deleteMany();
|
|
147
147
|
console.log(styleText(['green'], '✓'), 'dropped collection', styleText(['bold'], collection));
|
|
148
148
|
dropped++;
|
|
149
149
|
}
|