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