Browse Source

qrcode: cleanup

pull/4142/head
Daniel Spaude 2 years ago
parent
commit
a9a3d3ac2e
No known key found for this signature in database
GPG Key ID: 654A3D1FA4F35FFE
  1. 3
      packages/nocodb/src/lib/meta/api/columnApis.ts
  2. 3
      packages/nocodb/src/lib/models/Column.ts

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

@ -721,9 +721,6 @@ export async function columnUpdate(req: Request, res: Response<TableType>) {
) {
if (column.uidt === colBody.uidt) {
if (column.uidt === UITypes.QrCode) {
console.debug('DEBUG - QR CODE UPDATE - req.body', req.body);
// TODO: probably have to continue here
//
await Column.update(column.id, {
...column,
...colBody,

3
packages/nocodb/src/lib/models/Column.ts

@ -225,9 +225,6 @@ export default class Column<T = any> implements ColumnType {
await QrCodeColumn.insert(
{
fk_column_id: colId,
// TODO: probably do here (or maybe before - in columnApis)
// substitutions / special handling of virtual columns
// (similar to how e.g. Formular is doing it)
fk_qr_value_column_id: column.fk_qr_value_column_id,
},
ncMeta

Loading…
Cancel
Save