UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

16 lines 724 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.del = del; const transport_1 = require("../../../transport"); async function del(index) { const userId = this.getNodeParameter('userId', index); const postId = this.getNodeParameter('postId', index); const emojiName = this.getNodeParameter('emojiName', index).replace(/:/g, ''); const qs = {}; const requestMethod = 'DELETE'; const endpoint = `users/${userId}/posts/${postId}/reactions/${emojiName}`; const body = {}; const responseData = await transport_1.apiRequest.call(this, requestMethod, endpoint, body, qs); return this.helpers.returnJsonArray(responseData); } //# sourceMappingURL=execute.js.map