appwrite-utils-cli 0.0.244 → 0.0.245

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.
@@ -52,11 +52,8 @@ export class UsersController {
52
52
  return finalBatches;
53
53
  };
54
54
  const userPromises = [];
55
- const allUsersBatched = createBatches(allUsers);
56
- for (const userBatch of allUsersBatched) {
57
- for (const user of userBatch) {
58
- userPromises.push(this.users.delete(user.$id));
59
- }
55
+ for (const user of allUsers) {
56
+ userPromises.push(this.users.delete(user.$id));
60
57
  }
61
58
  const batchedUserPromises = createBatches(userPromises);
62
59
  for (const batch of batchedUserPromises) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "appwrite-utils-cli",
3
3
  "description": "Appwrite Utility Functions to help with database management, data conversion, data import, migrations, and much more. Meant to be used as a CLI tool, I do not recommend installing this in frontend environments.",
4
- "version": "0.0.244",
4
+ "version": "0.0.245",
5
5
  "main": "src/main.ts",
6
6
  "type": "module",
7
7
  "repository": {
@@ -60,11 +60,8 @@ export class UsersController {
60
60
  return finalBatches;
61
61
  };
62
62
  const userPromises: Promise<string>[] = [];
63
- const allUsersBatched = createBatches(allUsers);
64
- for (const userBatch of allUsersBatched) {
65
- for (const user of userBatch) {
66
- userPromises.push(this.users.delete(user.$id));
67
- }
63
+ for (const user of allUsers) {
64
+ userPromises.push(this.users.delete(user.$id));
68
65
  }
69
66
  const batchedUserPromises = createBatches(userPromises);
70
67
  for (const batch of batchedUserPromises) {