satellite/satellitedb: fix broken query

Change-Id: I6d412a673d75264bf9751c6f15b1fb0ab94e1394
This commit is contained in:
Jeff Wendling 2021-02-04 16:00:47 -05:00
parent f011a5e8cc
commit e114cfe86d

View File

@ -23,7 +23,7 @@ func (comp *compensationDB) QueryTotalAmounts(ctx context.Context, nodeID storj.
stmt := comp.db.Rebind(`
SELECT
coalesce(SUM(held), 0) AS total_held,
coalesce(SUM(disposed), 0) AS total_disposed
coalesce(SUM(disposed), 0) AS total_disposed,
coalesce(SUM(paid), 0) AS total_paid,
coalesce(SUM(distributed), 0) AS total_distributed
FROM