Browse Source

pr comments

pull/7210/head
Martin McKeaveney 4 years ago
parent
commit
25571d7751
  1. 3
      packages/server/src/automations/steps/queryRows.js
  2. 1
      packages/server/src/automations/tests/queryRows.spec.js

3
packages/server/src/automations/steps/queryRows.js

@ -120,7 +120,8 @@ function typeCoercion(filters, table) {
}
const hasNullFilters = filters =>
filters.length === 0 || filters.some(filter => filter.value === null)
filters.length === 0 ||
filters.some(filter => filter.value === null || filter.value === "")
exports.run = async function ({ inputs, appId }) {
const { tableId, filters, sortColumn, sortOrder, limit } = inputs

1
packages/server/src/automations/tests/queryRows.spec.js

@ -50,7 +50,6 @@ describe("Test a query step automation", () => {
})
it("Returns all rows when onEmptyFilter has no value and no filters are passed", async () => {
console.log(rows)
const inputs = {
tableId: table._id,
filters: {},

Loading…
Cancel
Save