fix: round revenue calculation in AnalyticSchema
Some checks failed
CI / build (push) Has been cancelled
Some checks failed
CI / build (push) Has been cancelled
- Added logic to round the revenue value to the nearest whole number before returning the analytic data. - This change aims to ensure that revenue figures are presented in a more user-friendly format, enhancing clarity in analytic reports.
This commit is contained in:
@@ -461,6 +461,8 @@ export class AnalyticSchema extends PothosSchema {
|
|||||||
revenue += actualRevenue;
|
revenue += actualRevenue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// round revenue to number
|
||||||
|
revenue = Math.round(revenue);
|
||||||
// return analytic
|
// return analytic
|
||||||
return {
|
return {
|
||||||
topServices: topServices,
|
topServices: topServices,
|
||||||
|
|||||||
Reference in New Issue
Block a user