directus-template-cli 0.5.0-beta.8 → 0.5.0-beta.9
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.
|
@@ -49,8 +49,12 @@ exports.default = loadFlows;
|
|
|
49
49
|
async function loadOperations(operations) {
|
|
50
50
|
core_1.ux.action.status = `Loading ${operations.length} operations`;
|
|
51
51
|
try {
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
const opsIds = operations.map(operation => {
|
|
53
|
+
const opCopy = { ...operation };
|
|
54
|
+
delete opCopy.reject;
|
|
55
|
+
delete opCopy.resolve;
|
|
56
|
+
return opCopy;
|
|
57
|
+
});
|
|
54
58
|
await sdk_2.api.client.request((0, sdk_1.createOperations)(opsIds));
|
|
55
59
|
const results = await Promise.allSettled(operations.map(operation => sdk_2.api.client.request((0, sdk_1.updateOperation)(operation.id, {
|
|
56
60
|
reject: operation.reject,
|
package/oclif.manifest.json
CHANGED