Browse Source

fix(nocodb): column_name -> title for bulkUpdateAll

pull/3563/head
Wing-Kam Wong 2 years ago
parent
commit
ff86f21eca
  1. 6
      packages/nocodb/src/lib/meta/api/columnApis.ts

6
packages/nocodb/src/lib/meta/api/columnApis.ts

@ -911,7 +911,7 @@ export async function columnUpdate(req: Request, res: Response<TableType>) {
]);
} else {
await baseModel.bulkUpdateAll(
{ where: `(${column.column_name},eq,${option.title})` },
{ where: `(${column.title},eq,${option.title})` },
{ [column.column_name]: null },
{ cookie: req }
);
@ -1077,7 +1077,7 @@ export async function columnUpdate(req: Request, res: Response<TableType>) {
]);
} else {
await baseModel.bulkUpdateAll(
{ where: `(${column.column_name},eq,${option.title})` },
{ where: `(${column.title},eq,${option.title})` },
{ [column.column_name]: newOp.title },
{ cookie: req }
);
@ -1150,7 +1150,7 @@ export async function columnUpdate(req: Request, res: Response<TableType>) {
]);
} else {
await baseModel.bulkUpdateAll(
{ where: `(${column.column_name},eq,${ch.temp_title})` },
{ where: `(${column.title},eq,${ch.temp_title})` },
{ [column.column_name]: newOp.title },
{ cookie: req }
);

Loading…
Cancel
Save