Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

zapier convert: Ignore _pre_poll and _post_poll if _poll exists #187

Merged
merged 1 commit into from
Nov 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scaffold/convert/trigger.template.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Trigger stub created by 'zapier convert'. This is just a stub - you will need to edit!
<%
// Template for just _pre_poll()
if (scripting && preScripting && !postScripting) { %>
if (scripting && preScripting && !postScripting && !fullScripting) { %>
const getList = (z, bundle) => {
const scripting = require('../scripting');
const legacyScriptingRunner = require('zapier-platform-legacy-scripting-runner')(scripting);
Expand All @@ -21,7 +21,7 @@ const getList = (z, bundle) => {
}

// Template for _pre_poll() + _post_poll()
if (scripting && preScripting && postScripting) { %>
if (scripting && preScripting && postScripting && !fullScripting) { %>
const getList = (z, bundle) => {
const scripting = require('../scripting');
const legacyScriptingRunner = require('zapier-platform-legacy-scripting-runner')(scripting);
Expand Down Expand Up @@ -49,7 +49,7 @@ const getList = (z, bundle) => {
}

// Template for just _post_poll()
if (scripting && !preScripting && postScripting) { %>
if (scripting && !preScripting && postScripting && !fullScripting) { %>
const getList = (z, bundle) => {
const scripting = require('../scripting');
const legacyScriptingRunner = require('zapier-platform-legacy-scripting-runner')(scripting);
Expand Down