UNPKG

n8n-nodes-tulip

Version:
16 lines 701 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.execute = execute; const transport_1 = require("../../../transport"); async function execute(index) { const tableId = this.getNodeParameter('tableId', index); const allowRecordsInUse = this.getNodeParameter('allowRecordsInUse', index, false); const body = {}; const qs = {}; const requestMethod = 'DELETE'; const endpoint = `tables/${tableId}/records`; qs.allowRecordsInUse = allowRecordsInUse; const responseData = await transport_1.apiRequest.call(this, requestMethod, endpoint, body, qs); return this.helpers.returnJsonArray(responseData); } //# sourceMappingURL=execute.js.map