rafinkanisa / ngm-reportDesk

The workdesk for ReportHub
0 stars 1 forks source link

Missing Last Login data for specific user #171

Closed rafinkanisa closed 2 years ago

rafinkanisa commented 2 years ago

Kindly check bugs as seen in the picture

Screen Shot 2021-12-02 at 18 14 14
fakhrihawari commented 2 years ago

Updated with this script: db.user.find({ last_logged_in: { $exists: false } }).forEach(function (u) { if (!u.last_logged_in) { u.last_logged_in = u.updatedAt; db.user.save(u) } })

rafinkanisa commented 2 years ago

Link PR https://github.com/iMMAP/ngm-reportHub/pull/78