0

When a record is updated in database from TypeORM the date timestamp doesn't get updated.

alter table qae_dashboard.test_suite 
 add column `lastUpdated` DATETIME default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP

NestjS/TypeORM

 return await this.testRepository.update(
    { test_id: existingData.test_id },
    existingData
  );

Please advise.

Shreyas Murali
  • 329
  • 1
  • 2
  • 17

0 Answers0