n8n-nodes-base
Version:
Base nodes of n8n
15 lines • 672 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.execute = execute;
const GenericFunctions_1 = require("../../GenericFunctions");
async function execute(index) {
const tableName = this.getNodeParameter('tableName', index);
const rowId = this.getNodeParameter('rowId', index);
const requestBody = {
table_name: tableName,
row_ids: [rowId],
};
const responseData = await GenericFunctions_1.seaTableApiRequest.call(this, {}, 'DELETE', '/api-gateway/api/v2/dtables/{{dtable_uuid}}/rows/', requestBody);
return this.helpers.returnJsonArray(responseData);
}
//# sourceMappingURL=remove.operation.js.map