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; knex?: XKnex;
}) { }) {
const columnName = await model.getColumns().then((columns) => { const columnName = await model.getColumns().then((columns) => {
return columns.find((c) => c.uidt === UITypes.LastModifiedTime) return columns.find(
?.column_name; (c) => c.uidt === UITypes.LastModifiedTime && c.system,
)?.column_name;
}); });
if (!columnName) return; if (!columnName) return;

Loading…
Cancel
Save