feat: reconcile application vertical slices
Backfill the completed acquisitions, sales, dashboard, pricing, search, public detail, worker, migration, contracts, validation, tests, and implementation-status changes into one verified application slice.
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
function toIsoString(value) { return value instanceof Date ? value.toISOString() : value; }
|
||||
function toIsoString(value) {
|
||||
return value instanceof Date ? value.toISOString() : value;
|
||||
}
|
||||
|
||||
export function toAdminPricingObservationDto(observation) {
|
||||
return {
|
||||
@@ -28,7 +30,9 @@ export function toAdminMarketValuationDto({ valuation, observations }) {
|
||||
confidence: valuation.confidence,
|
||||
sourceCount: valuation.sourceCount,
|
||||
calculatedAt: toIsoString(valuation.calculatedAt),
|
||||
stale: Date.now() - new Date(valuation.calculatedAt).getTime() > 7 * 24 * 60 * 60 * 1000,
|
||||
stale:
|
||||
Date.now() - new Date(valuation.calculatedAt).getTime() >
|
||||
7 * 24 * 60 * 60 * 1000,
|
||||
observations: observations.map(toAdminPricingObservationDto),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user