fix backend workflow
This commit is contained in:
parent
f2760d05ad
commit
a92ab5cabb
|
@ -86,7 +86,6 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
.root {
|
.root {
|
||||||
font-size: 10pt;
|
font-size: 10pt;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
@ -22,7 +22,7 @@ async function executeRelevantWorkflows(event, eventType) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
emitter.on("action", async function(event) {
|
emitter.on("record:save", async function(event) {
|
||||||
await executeRelevantWorkflows(event, "record:save")
|
await executeRelevantWorkflows(event, "record:save")
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ exports.serverStrategy = () => ({
|
||||||
if (block.type === "CLIENT") continue
|
if (block.type === "CLIENT") continue
|
||||||
|
|
||||||
const action = require(`../api/controllers/workflow/actions/${block.actionId}`)
|
const action = require(`../api/controllers/workflow/actions/${block.actionId}`)
|
||||||
const response = await action(this.bindContextArgs(block.args))
|
const response = await action({ args: this.bindContextArgs(block.args) })
|
||||||
|
|
||||||
this.context = {
|
this.context = {
|
||||||
...this.context,
|
...this.context,
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
} else {
|
} else {
|
||||||
throw new Error("Failed to fetch records.", response)
|
throw new Error("Failed to fetch records.", response)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$: if (model) fetchData()
|
$: if (model) fetchData()
|
||||||
|
@ -36,8 +35,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section class:grid={layout === 'grid'} class:list={layout === 'list'}>
|
<section class:grid={layout === 'grid'} class:list={layout === 'list'}>
|
||||||
<div class="data-card" bind:this={target}>
|
<div class="data-card" bind:this={target} />
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
Loading…
Reference in New Issue