mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
⚡ Minor improvements to Gotify Node
This commit is contained in:
@@ -35,7 +35,7 @@ export async function gotifyApiRequest(this: IExecuteFunctions | IExecuteSingleF
|
||||
//@ts-ignore
|
||||
return await this.helpers.request.call(this, options);
|
||||
} catch (error) {
|
||||
|
||||
|
||||
if (error.response && error.response.body && error.response.body.errorDescription) {
|
||||
const message = error.response.body.errorDescription;
|
||||
// Try to return the error prettier
|
||||
|
||||
@@ -204,7 +204,7 @@ export class Gotify implements INodeType {
|
||||
const body: IDataObject = {
|
||||
message,
|
||||
};
|
||||
|
||||
|
||||
Object.assign(body, additionalFields);
|
||||
|
||||
responseData = await gotifyApiRequest.call(
|
||||
|
||||
Reference in New Issue
Block a user