mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
👕 Fix lint issue
This commit is contained in:
@@ -51,7 +51,7 @@ export const collectionFields = [
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
description: 'Name of the collection to operate on.'
|
||||
description: 'Name of the collection to operate on.',
|
||||
},
|
||||
|
||||
// Collection:entry:getAll
|
||||
@@ -109,7 +109,7 @@ export const collectionFields = [
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -189,7 +189,7 @@ export const collectionFields = [
|
||||
],
|
||||
operation: [
|
||||
'update',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The entry ID.',
|
||||
@@ -210,7 +210,7 @@ export const collectionFields = [
|
||||
operation: [
|
||||
'create',
|
||||
'update',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'If new entry fields should be set via the value-key pair UI or JSON.',
|
||||
@@ -234,7 +234,7 @@ export const collectionFields = [
|
||||
operation: [
|
||||
'create',
|
||||
'update',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Entry data to send as JSON.',
|
||||
@@ -258,7 +258,7 @@ export const collectionFields = [
|
||||
operation: [
|
||||
'create',
|
||||
'update',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
|
||||
@@ -15,7 +15,7 @@ export async function createCollectionEntry(this: IExecuteFunctions | IExecuteSi
|
||||
if (id) {
|
||||
body.data = {
|
||||
_id: id,
|
||||
...body.data
|
||||
...body.data,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ export const formOperations = [
|
||||
],
|
||||
default: 'submit',
|
||||
description: 'The operation to perform.',
|
||||
}
|
||||
},
|
||||
] as INodeProperties[];
|
||||
|
||||
export const formFields = [
|
||||
@@ -39,7 +39,7 @@ export const formFields = [
|
||||
},
|
||||
default: '',
|
||||
required: true,
|
||||
description: 'Name of the form to operate on.'
|
||||
description: 'Name of the form to operate on.',
|
||||
},
|
||||
|
||||
// Form:submit
|
||||
@@ -55,7 +55,7 @@ export const formFields = [
|
||||
],
|
||||
operation: [
|
||||
'submit',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'If form fields should be set via the value-key pair UI or JSON.',
|
||||
@@ -78,7 +78,7 @@ export const formFields = [
|
||||
],
|
||||
operation: [
|
||||
'submit',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Form data to send as JSON.',
|
||||
@@ -101,7 +101,7 @@ export const formFields = [
|
||||
],
|
||||
operation: [
|
||||
'submit',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
|
||||
@@ -9,7 +9,7 @@ import { cockpitApiRequest } from './GenericFunctions';
|
||||
|
||||
export async function submitForm(this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, resourceName: string, form: IDataObject) {
|
||||
const body: IForm = {
|
||||
form
|
||||
form,
|
||||
};
|
||||
|
||||
return cockpitApiRequest.call(this, 'post', `/forms/submit/${resourceName}`, body);
|
||||
|
||||
@@ -20,11 +20,11 @@ export async function cockpitApiRequest(this: IExecuteFunctions | IExecuteSingle
|
||||
},
|
||||
method,
|
||||
qs: {
|
||||
token: credentials!.accessToken
|
||||
token: credentials!.accessToken,
|
||||
},
|
||||
body,
|
||||
uri: uri || `${credentials!.url}/api${resource}`,
|
||||
json: true
|
||||
json: true,
|
||||
};
|
||||
|
||||
options = Object.assign({}, options, option);
|
||||
|
||||
@@ -21,7 +21,7 @@ export const singletonOperations = [
|
||||
],
|
||||
default: 'get',
|
||||
description: 'The operation to perform.',
|
||||
}
|
||||
},
|
||||
] as INodeProperties[];
|
||||
|
||||
export const singletonFields = [
|
||||
@@ -41,6 +41,6 @@ export const singletonFields = [
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
description: 'Name of the singleton to operate on.'
|
||||
description: 'Name of the singleton to operate on.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
|
||||
Reference in New Issue
Block a user