mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
ci: Fix linting issues (no-changelog) (#6788)
* ci: Fix linting (no-changelog) * lintfix for nodes-base as well
This commit is contained in:
committed by
GitHub
parent
4e491b754f
commit
6fb8a9ee39
@@ -87,9 +87,7 @@ export function getAutomaticSecret(credentials: ICredentialDataDecryptedObject)
|
||||
return createHash('md5').update(data).digest('hex');
|
||||
}
|
||||
|
||||
export function setMetadata(
|
||||
data: IShoppingLine[] | IShoppingLine[] | IFeeLine[] | ILineItem[] | ICouponLine[],
|
||||
) {
|
||||
export function setMetadata(data: IShoppingLine[] | IFeeLine[] | ILineItem[] | ICouponLine[]) {
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
//@ts-ignore\
|
||||
if (data[i].metadataUi?.metadataValues) {
|
||||
@@ -105,7 +103,7 @@ export function setMetadata(
|
||||
}
|
||||
|
||||
export function toSnakeCase(
|
||||
data: IShoppingLine[] | IShoppingLine[] | IFeeLine[] | ILineItem[] | ICouponLine[] | IDataObject,
|
||||
data: IShoppingLine[] | IFeeLine[] | ILineItem[] | ICouponLine[] | IDataObject,
|
||||
) {
|
||||
if (!Array.isArray(data)) {
|
||||
data = [data];
|
||||
|
||||
Reference in New Issue
Block a user