mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-23 18:41:48 -08:00
👕 Fix lint issue
This commit is contained in:
parent
0cfcd1170f
commit
c89cef163c
|
@ -238,7 +238,7 @@ export class MySql implements INodeType {
|
|||
const updateItems = copyInputItems(items, columns);
|
||||
const updateSQL = `UPDATE ${table} SET ${columns.map(column => `${column} = ?`).join(',')} WHERE ${updateKey} = ?;`;
|
||||
const queryQueue = updateItems.map((item) => connection.query(updateSQL, Object.values(item).concat(item[updateKey])));
|
||||
let queryResult = await Promise.all(queryQueue);
|
||||
const queryResult = await Promise.all(queryQueue);
|
||||
returnItems = this.helpers.returnJsonArray(queryResult.map(result => result[0]) as unknown as IDataObject[]);
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue