Fix 404 for territories in profile (#1029)

This commit is contained in:
ekzyis 2024-04-05 21:47:05 +02:00 committed by GitHub
parent ba8b37ffb9
commit 0b07962e1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -186,6 +186,7 @@ export default {
const subs = await models.$queryRawUnsafe(`
SELECT "Sub".*,
"Sub".created_at as "createdAt",
COALESCE(floor(sum(msats_revenue)/1000), 0) as revenue,
COALESCE(floor(sum(msats_stacked)/1000), 0) as stacked,
COALESCE(floor(sum(msats_spent)/1000), 0) as spent,