Browse Source

fix(nocodb): use system time as always

pull/5601/head
Wing-Kam Wong 2 years ago
parent
commit
3a46a33573
  1. 6
      packages/nocodb/src/lib/meta/NcMetaIOImpl.ts

6
packages/nocodb/src/lib/meta/NcMetaIOImpl.ts

@ -257,9 +257,9 @@ export default class NcMetaIOImpl extends NcMetaIO {
return this.knexConnection(target).insert({
db_alias: dbAlias,
project_id,
...data,
created_at: this.now(),
updated_at: this.now(),
...data,
});
}
@ -279,8 +279,8 @@ export default class NcMetaIOImpl extends NcMetaIO {
if (project_id !== null) insertObj.project_id = project_id;
await this.knexConnection(target).insert({
...insertObj,
created_at: insertObj?.created_at || this.now(),
updated_at: insertObj?.updated_at || this.now(),
created_at: this.now(),
updated_at: this.now(),
});
return insertObj;
}

Loading…
Cancel
Save