Browse Source

fix: extract system column for setting lastmodifiedtime

pull/7369/head
Pranav C 10 months ago
parent
commit
9f2369ab68
  1. 5
      packages/nocodb/src/db/BaseModelSqlv2.ts

5
packages/nocodb/src/db/BaseModelSqlv2.ts

@ -5644,8 +5644,9 @@ class BaseModelSqlv2 {
knex?: XKnex;
}) {
const columnName = await model.getColumns().then((columns) => {
return columns.find((c) => c.uidt === UITypes.LastModifiedTime)
?.column_name;
return columns.find(
(c) => c.uidt === UITypes.LastModifiedTime && c.system,
)?.column_name;
});
if (!columnName) return;

Loading…
Cancel
Save