appwrite-utils-cli 0.9.84 → 0.9.85
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.
@@ -111,6 +111,9 @@ export class SchemaGenerator {
|
|
111
111
|
return;
|
112
112
|
}
|
113
113
|
this.config.collections.forEach((collection) => {
|
114
|
+
if (!collection.attributes) {
|
115
|
+
return;
|
116
|
+
}
|
114
117
|
collection.attributes.forEach((attr) => {
|
115
118
|
if (attr.type === "relationship" && attr.twoWay && attr.twoWayKey) {
|
116
119
|
const relationshipAttr = attr;
|
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.9.
|
4
|
+
"version": "0.9.85",
|
5
5
|
"main": "src/main.ts",
|
6
6
|
"type": "module",
|
7
7
|
"repository": {
|
@@ -145,6 +145,9 @@ export class SchemaGenerator {
|
|
145
145
|
return;
|
146
146
|
}
|
147
147
|
this.config.collections.forEach((collection) => {
|
148
|
+
if (!collection.attributes) {
|
149
|
+
return;
|
150
|
+
}
|
148
151
|
collection.attributes.forEach((attr) => {
|
149
152
|
if (attr.type === "relationship" && attr.twoWay && attr.twoWayKey) {
|
150
153
|
const relationshipAttr = attr as RelationshipAttribute;
|