appwrite-utils-cli 0.0.41 → 0.0.42
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/migrations/users.js
CHANGED
|
@@ -77,9 +77,7 @@ export class UsersController {
|
|
|
77
77
|
try {
|
|
78
78
|
const user = await this.users.create(item.userId || ID.unique(), item.email || undefined, item.phone && item.phone.length < 15 && item.phone.startsWith("+")
|
|
79
79
|
? item.phone
|
|
80
|
-
: undefined, item.
|
|
81
|
-
`changeMe${item.email?.toLowerCase()}` ||
|
|
82
|
-
`changeMePlease`, item.name || undefined);
|
|
80
|
+
: undefined, `changeMe${item.email?.toLowerCase()}` || `changeMePlease`, item.name || undefined);
|
|
83
81
|
if (item.labels) {
|
|
84
82
|
await this.users.updateLabels(user.$id, item.labels);
|
|
85
83
|
}
|
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.42",
|
|
5
5
|
"main": "src/main.ts",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"repository": {
|
package/src/migrations/users.ts
CHANGED
|
@@ -110,9 +110,7 @@ export class UsersController {
|
|
|
110
110
|
item.phone && item.phone.length < 15 && item.phone.startsWith("+")
|
|
111
111
|
? item.phone
|
|
112
112
|
: undefined,
|
|
113
|
-
item.
|
|
114
|
-
`changeMe${item.email?.toLowerCase()}` ||
|
|
115
|
-
`changeMePlease`,
|
|
113
|
+
`changeMe${item.email?.toLowerCase()}` || `changeMePlease`,
|
|
116
114
|
item.name || undefined
|
|
117
115
|
);
|
|
118
116
|
if (item.labels) {
|