Convert billing to 1-to-100 credits
This commit is contained in:
+1
-1
@@ -176,7 +176,7 @@ async function getAverageCostCents(provider) {
|
||||
const { rows } = await pool.query(
|
||||
`
|
||||
SELECT CAST(ROUND(AVG(CASE
|
||||
WHEN cost_estimate IS NOT NULL THEN cost_estimate * 100
|
||||
WHEN cost_estimate IS NOT NULL THEN cost_estimate * 10000
|
||||
ELSE 0
|
||||
END)::numeric) AS INTEGER) AS avg_cents
|
||||
FROM api_call_logs
|
||||
|
||||
Reference in New Issue
Block a user