@infrab4a/connect 4.9.7-beta.6 → 4.9.7-beta.7
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/index.cjs.js +2 -4
- package/index.esm.js +2 -4
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -4981,7 +4981,6 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
4981
4981
|
if (Array.isArray(metadata) && !metadata.length)
|
|
4982
4982
|
return [];
|
|
4983
4983
|
if (Array.isArray(metadata) && metadata.length) {
|
|
4984
|
-
const metadataUpdated = [];
|
|
4985
4984
|
await this.mutation('delete_category_metadata', ['affected_rows'], {
|
|
4986
4985
|
where: {
|
|
4987
4986
|
type: 'category_metadata_bool_exp',
|
|
@@ -4989,15 +4988,14 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
4989
4988
|
value: { category_id: { _eq: categoryId } },
|
|
4990
4989
|
},
|
|
4991
4990
|
});
|
|
4992
|
-
|
|
4991
|
+
await this.mutation('insert_category_metadata', ['affected_rows'], {
|
|
4993
4992
|
objects: {
|
|
4994
4993
|
type: '[category_metadata_insert_input!]',
|
|
4995
4994
|
required: true,
|
|
4996
4995
|
value: metadata.map((m) => (Object.assign({ category_id: categoryId }, m))),
|
|
4997
4996
|
},
|
|
4998
4997
|
});
|
|
4999
|
-
|
|
5000
|
-
return metadataUpdated;
|
|
4998
|
+
return metadata;
|
|
5001
4999
|
}
|
|
5002
5000
|
if ('action' in metadata && metadata.action === 'remove' && metadata.value.length) {
|
|
5003
5001
|
await this.mutation('delete_category_metadata', ['affected_rows'], {
|
package/index.esm.js
CHANGED
|
@@ -4975,7 +4975,6 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
4975
4975
|
if (Array.isArray(metadata) && !metadata.length)
|
|
4976
4976
|
return [];
|
|
4977
4977
|
if (Array.isArray(metadata) && metadata.length) {
|
|
4978
|
-
const metadataUpdated = [];
|
|
4979
4978
|
await this.mutation('delete_category_metadata', ['affected_rows'], {
|
|
4980
4979
|
where: {
|
|
4981
4980
|
type: 'category_metadata_bool_exp',
|
|
@@ -4983,15 +4982,14 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
4983
4982
|
value: { category_id: { _eq: categoryId } },
|
|
4984
4983
|
},
|
|
4985
4984
|
});
|
|
4986
|
-
|
|
4985
|
+
await this.mutation('insert_category_metadata', ['affected_rows'], {
|
|
4987
4986
|
objects: {
|
|
4988
4987
|
type: '[category_metadata_insert_input!]',
|
|
4989
4988
|
required: true,
|
|
4990
4989
|
value: metadata.map((m) => (Object.assign({ category_id: categoryId }, m))),
|
|
4991
4990
|
},
|
|
4992
4991
|
});
|
|
4993
|
-
|
|
4994
|
-
return metadataUpdated;
|
|
4992
|
+
return metadata;
|
|
4995
4993
|
}
|
|
4996
4994
|
if ('action' in metadata && metadata.action === 'remove' && metadata.value.length) {
|
|
4997
4995
|
await this.mutation('delete_category_metadata', ['affected_rows'], {
|