e-oj / Fawn

Transactions for MongoDB (See the README)
https://www.npmjs.com/package/fawn
MIT License
485 stars 54 forks source link

Fawn unable to save createdAt #83

Open pallabpki opened 4 years ago

pallabpki commented 4 years ago

Hi...I am trying to save data but record saving withoit createdAt, and updatedAt. But when I am saving normally it's saving properly.

{
    timestamps: true
}

Already added in Schema //Fawn

new Fawn.Task()
   .save('employees', employee)
   .save('employeedetails', employeeDetails)
   .run({ useMongoose: true })
   .then(function (retult) {
      res.send({
         retult
      })
   })