This commit is contained in:
2025-06-13 23:50:39 +02:00
parent 2a6f96d787
commit b6299ad527
2 changed files with 20 additions and 14 deletions

View File

@@ -41,6 +41,7 @@ func (s Dashboard) Summary(ctx context.Context, user *types.User, month time.Tim
WHERE user_id = $1
AND value > 0
AND account_id IS NOT NULL
AND treasure_chest_id IS NULL
AND error IS NULL
AND date_trunc('month', date) = date_trund('month', $2)`,
user.Id, month)
@@ -51,6 +52,7 @@ func (s Dashboard) Summary(ctx context.Context, user *types.User, month time.Tim
WHERE user_id = $1
AND value > 0
AND treasure_chest_id IS NOT NULL
AND account_id IS NULL
AND error IS NULL
AND date_trunc('month', date) = date_trund('month', $2)`,
user.Id, month)