Browse Source

fix: when inserting set updated_at column value as null

pull/7304/head
Pranav C 12 months ago
parent
commit
6c6aecd4b9
  1. 3
      packages/nocodb/src/db/BaseModelSqlv2.ts

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

@ -5669,11 +5669,10 @@ class BaseModelSqlv2 {
data[column.column_name] = Noco.ncMeta.now();
}
if (
!isInsertData &&
column.uidt === UITypes.LastModifiedTime &&
column.system
) {
data[column.column_name] = Noco.ncMeta.now();
data[column.column_name] = isInsertData ? null : Noco.ncMeta.now();
}
if (column.uidt === UITypes.Attachment) {
if (data[column.column_name]) {

Loading…
Cancel
Save