account for integer type from JSON schema
This commit is contained in:
parent
d818bd6dfa
commit
27da6ea4ab
|
@ -241,7 +241,7 @@
|
||||||
value={inputData[key]}
|
value={inputData[key]}
|
||||||
/>
|
/>
|
||||||
</CodeEditorModal>
|
</CodeEditorModal>
|
||||||
{:else if value.type === "string" || value.type === "number"}
|
{:else if value.type === "string" || value.type === "number" || value.type === "integer"}
|
||||||
{#if isTestModal}
|
{#if isTestModal}
|
||||||
<ModalBindableInput
|
<ModalBindableInput
|
||||||
title={value.title}
|
title={value.title}
|
||||||
|
|
|
@ -65,6 +65,10 @@ exports.buildSchema = async ctx => {
|
||||||
let automation = await db.get(webhook.action.target)
|
let automation = await db.get(webhook.action.target)
|
||||||
const autoOutputs = automation.definition.trigger.schema.outputs
|
const autoOutputs = automation.definition.trigger.schema.outputs
|
||||||
let properties = webhook.bodySchema.properties
|
let properties = webhook.bodySchema.properties
|
||||||
|
// reset webhook outputs
|
||||||
|
autoOutputs.properties = {
|
||||||
|
body: autoOutputs.properties.body,
|
||||||
|
}
|
||||||
for (let prop of Object.keys(properties)) {
|
for (let prop of Object.keys(properties)) {
|
||||||
autoOutputs.properties[prop] = {
|
autoOutputs.properties[prop] = {
|
||||||
type: properties[prop].type,
|
type: properties[prop].type,
|
||||||
|
|
|
@ -450,7 +450,7 @@ module OracleModule {
|
||||||
})
|
})
|
||||||
return lastRow.rows
|
return lastRow.rows
|
||||||
} else {
|
} else {
|
||||||
return [{ [ operation.toLowerCase() ]: true }]
|
return [{ [operation.toLowerCase()]: true }]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue