Browse Source

account for integer type from JSON schema

master
Martin McKeaveney 5 years ago
parent
commit
f40fe2e4ed
  1. 2
      packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte
  2. 4
      packages/server/src/api/controllers/webhook.js
  3. 2
      packages/server/src/integrations/oracle.ts

2
packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte

@ -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}

4
packages/server/src/api/controllers/webhook.js

@ -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,

2
packages/server/src/integrations/oracle.ts

@ -450,7 +450,7 @@ module OracleModule {
}) })
return lastRow.rows return lastRow.rows
} else { } else {
return [{ [ operation.toLowerCase() ]: true }] return [{ [operation.toLowerCase()]: true }]
} }
} }
} }

Loading…
Cancel
Save