@wbce-d9/api 12.5.0 → 12.5.1
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.
|
@@ -73,7 +73,7 @@ function addJoin({ path, collection, aliasMap, rootQuery, schema, relations, kne
|
|
|
73
73
|
}
|
|
74
74
|
rootQuery.leftJoin({ [alias]: pathScope }, (joinClause) => {
|
|
75
75
|
joinClause
|
|
76
|
-
.onVal(relation.meta.one_collection_field
|
|
76
|
+
.onVal(`${aliasedParentCollection}.${relation.meta.one_collection_field}`, '=', pathScope)
|
|
77
77
|
.andOn(`${aliasedParentCollection}.${relation.field}`, '=', knex.raw(getHelpers(knex).schema.castA2oPrimaryKey(), `${alias}.${schema.collections[pathScope].primary}`));
|
|
78
78
|
});
|
|
79
79
|
aliasMap[aliasKey].collection = pathScope;
|
|
@@ -81,7 +81,7 @@ function addJoin({ path, collection, aliasMap, rootQuery, schema, relations, kne
|
|
|
81
81
|
else if (relationType === 'o2a') {
|
|
82
82
|
rootQuery.leftJoin({ [alias]: relation.collection }, (joinClause) => {
|
|
83
83
|
joinClause
|
|
84
|
-
.onVal(relation.meta.one_collection_field
|
|
84
|
+
.onVal(`${alias}.${relation.meta.one_collection_field}`, '=', parentCollection)
|
|
85
85
|
.andOn(`${alias}.${relation.field}`, '=', knex.raw(getHelpers(knex).schema.castA2oPrimaryKey(), `${aliasedParentCollection}.${schema.collections[parentCollection].primary}`));
|
|
86
86
|
});
|
|
87
87
|
aliasMap[aliasKey].collection = relation.collection;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wbce-d9/api",
|
|
3
|
-
"version": "12.5.
|
|
3
|
+
"version": "12.5.1",
|
|
4
4
|
"description": "Directus is a real-time API and App dashboard for managing SQL database content",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"ms": "2.1.3",
|
|
126
126
|
"node-cron": "3.0.2",
|
|
127
127
|
"node-machine-id": "1.1.12",
|
|
128
|
-
"nodemailer": "
|
|
128
|
+
"nodemailer": "9.0.3",
|
|
129
129
|
"object-hash": "3.0.0",
|
|
130
130
|
"openid-client": "6.8.2",
|
|
131
131
|
"otplib": "12.0.1",
|
|
@@ -144,19 +144,19 @@
|
|
|
144
144
|
"tsx": "3.12.6",
|
|
145
145
|
"uuid-validate": "0.0.3",
|
|
146
146
|
"@wbce-d9/app": "10.1.0",
|
|
147
|
-
"@wbce-d9/
|
|
147
|
+
"@wbce-d9/constants": "10.0.0",
|
|
148
|
+
"@wbce-d9/extensions-sdk": "10.0.2",
|
|
148
149
|
"@wbce-d9/schema": "10.0.0",
|
|
150
|
+
"@wbce-d9/storage": "10.0.0",
|
|
149
151
|
"@wbce-d9/specs": "9.26.5",
|
|
150
|
-
"@wbce-d9/
|
|
151
|
-
"@wbce-d9/extensions-sdk": "10.0.2",
|
|
152
|
-
"@wbce-d9/constants": "10.0.0",
|
|
152
|
+
"@wbce-d9/exceptions": "10.0.0",
|
|
153
153
|
"@wbce-d9/storage-driver-cloudinary": "10.0.2",
|
|
154
154
|
"@wbce-d9/storage-driver-gcs": "10.0.1",
|
|
155
|
+
"@wbce-d9/storage-driver-azure": "10.0.1",
|
|
155
156
|
"@wbce-d9/storage-driver-local": "10.0.1",
|
|
156
157
|
"@wbce-d9/storage-driver-s3": "10.0.1",
|
|
157
|
-
"@wbce-d9/
|
|
158
|
-
"@wbce-d9/
|
|
159
|
-
"@wbce-d9/update-check": "10.0.2"
|
|
158
|
+
"@wbce-d9/update-check": "10.0.2",
|
|
159
|
+
"@wbce-d9/utils": "10.0.1"
|
|
160
160
|
},
|
|
161
161
|
"devDependencies": {
|
|
162
162
|
"@ngneat/falso": "6.4.0",
|