ci: Setup biome and pre-commit hooks for formatting (no-changelog) (#10795)

Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-09-17 14:10:22 +02:00
committed by GitHub
parent 57836cc17a
commit 6a35812f92
85 changed files with 701 additions and 465 deletions

View File

@@ -536,8 +536,10 @@ export async function pgUpdate(
} else {
const where =
' WHERE ' +
// eslint-disable-next-line n8n-local-rules/no-interpolation-in-regular-string
updateKeys.map((entry) => pgp.as.name(entry.name) + ' = ${' + entry.prop + '}').join(' AND ');
updateKeys
// eslint-disable-next-line n8n-local-rules/no-interpolation-in-regular-string
.map((entry) => pgp.as.name(entry.name) + ' = ${' + entry.prop + '}')
.join(' AND ');
if (mode === 'transaction') {
return await db.tx(async (t) => {
const result: IDataObject[] = [];
@@ -664,8 +666,10 @@ export async function pgUpdateV2(
} else {
const where =
' WHERE ' +
// eslint-disable-next-line n8n-local-rules/no-interpolation-in-regular-string
updateKeys.map((entry) => pgp.as.name(entry.name) + ' = ${' + entry.prop + '}').join(' AND ');
updateKeys
// eslint-disable-next-line n8n-local-rules/no-interpolation-in-regular-string
.map((entry) => pgp.as.name(entry.name) + ' = ${' + entry.prop + '}')
.join(' AND ');
if (mode === 'transaction') {
return await db.tx(async (t) => {
const result: IDataObject[] = [];