Merge branch 'dev'

merge-requests/18/merge
Matthew 2021-02-02 02:22:47 -05:00
commit 11a6ee3827
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 2 additions and 2 deletions

View File

@ -551,8 +551,8 @@ export default class Report extends Route {
notify: score.notify,
locked: !!score.locked,
totalModerations: moderations?.length > 0 ? moderations.length : 0,
inquiries: hardInquiries?.length > 0 ? hardInquiries : [],
softInquiries: softInquiries?.length > 0 ? softInquiries : [],
inquiries: hardInquiries?.length > 0 ? hardInquiries.sort((a, b) => new Date(a.date).getTime() - new Date(b.date).getTime()) : [],
softInquiries: softInquiries?.length > 0 ? softInquiries.sort((a, b) => new Date(a.date).getTime() - new Date(b.date).getTime()) : [],
historical: historical ?? [],
lastUpdated: score.lastUpdate,
});