test: add back timestamp

This commit is contained in:
Barış Soner Uşaklı
2024-04-23 13:23:20 -04:00
parent ce9e1cf19b
commit c73f759cf1

View File

@@ -75,6 +75,7 @@ module.exports = function (User) {
flags.forEach((flag, idx) => { flags.forEach((flag, idx) => {
if (flag) { if (flag) {
flag.timestamp = flag.datetime;
flag.timestampISO = new Date(flag.datetime).toISOString(); flag.timestampISO = new Date(flag.datetime).toISOString();
flag.reports = reports[idx]; flag.reports = reports[idx];
} }