appwrite-utils-cli 0.0.254 → 0.0.255
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.
@@ -107,7 +107,6 @@ export class ImportController {
|
|
107
107
|
.then(() => console.log("Created user"))
|
108
108
|
.catch((error) => {
|
109
109
|
logger.error("Error creating user:", error, "\nUser data is ", userBatch.finalData);
|
110
|
-
throw error;
|
111
110
|
});
|
112
111
|
}
|
113
112
|
else {
|
@@ -125,8 +124,8 @@ export class ImportController {
|
|
125
124
|
console.log("Finished importing users");
|
126
125
|
}
|
127
126
|
}
|
128
|
-
if (!importOperationId
|
129
|
-
// Skip further processing
|
127
|
+
if (!importOperationId) {
|
128
|
+
// Skip further processing if no import operation is found
|
130
129
|
continue;
|
131
130
|
}
|
132
131
|
const importOperation = await this.database.getDocument("migrations", "currentOperations", importOperationId);
|
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.
|
4
|
+
"version": "0.0.255",
|
5
5
|
"main": "src/main.ts",
|
6
6
|
"type": "module",
|
7
7
|
"repository": {
|
@@ -172,7 +172,6 @@ export class ImportController {
|
|
172
172
|
"\nUser data is ",
|
173
173
|
userBatch.finalData
|
174
174
|
);
|
175
|
-
throw error;
|
176
175
|
});
|
177
176
|
} else {
|
178
177
|
console.log("Skipped existing user: ", userId);
|
@@ -192,8 +191,8 @@ export class ImportController {
|
|
192
191
|
}
|
193
192
|
}
|
194
193
|
|
195
|
-
if (!importOperationId
|
196
|
-
// Skip further processing
|
194
|
+
if (!importOperationId) {
|
195
|
+
// Skip further processing if no import operation is found
|
197
196
|
continue;
|
198
197
|
}
|
199
198
|
|