UNPKG

n8n-nodes-tulip

Version:
20 lines 828 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 recordId = this.getNodeParameter('recordId', index); const fieldName = this.getNodeParameter('fieldId', index); const value = this.getNodeParameter('value', index); const body = { fieldName: fieldName, value: value, }; const qs = {}; const requestMethod = 'PATCH'; const endpoint = `tables/${tableId}/records/${recordId}/increment`; const responseData = await transport_1.apiRequest.call(this, requestMethod, endpoint, body, qs); return this.helpers.returnJsonArray(responseData); } //# sourceMappingURL=execute.js.map