This commit is contained in:
Benjamin Toby 2026-01-09 13:02:54 +01:00
parent a915be704b
commit 1c20286c8c
3 changed files with 3 additions and 3 deletions

View File

@ -99,7 +99,7 @@ function updateDbEntry(_a) {
let query = `UPDATE ${isMaster && !dbFullName ? "" : `\`${dbFullName}\`.`}\`${tableName}\` SET ${updateKeyValueArray.join(",")}`;
if (targetIds) {
query += ` WHERE id IN (${targetIds.map((id) => "?").join(",")})`;
updateValues = targetIds;
updateValues.push(...targetIds);
}
else if (whereClauseObject) {
query += ` ${whereClauseObject.clause}`;

View File

@ -146,7 +146,7 @@ export default async function updateDbEntry<
if (targetIds) {
query += ` WHERE id IN (${targetIds.map((id) => "?").join(",")})`;
updateValues = targetIds;
updateValues.push(...targetIds);
} else if (whereClauseObject) {
query += ` ${whereClauseObject.clause}`;
updateValues.push(...(whereClauseObject.params || []));

View File

@ -1,6 +1,6 @@
{
"name": "@moduletrace/datasquirel",
"version": "5.7.24",
"version": "5.7.25",
"description": "Cloud-based SQL data management tool",
"main": "dist/index.js",
"bin": {