From 54d1dde292ab0a52e1de743fda198bb15fd15373 Mon Sep 17 00:00:00 2001 From: LUCCA DUKIC <109136188+LuccaBitfly@users.noreply.github.com> Date: Wed, 4 Oct 2023 08:54:54 +0200 Subject: [PATCH] (BIDS-2369) remove unnecessary coalesce --- db/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db.go b/db/db.go index f49ff52187..ab30ff1058 100644 --- a/db/db.go +++ b/db/db.go @@ -2388,7 +2388,7 @@ func GetTotalAmountWithdrawn() (sum uint64, count uint64, err error) { WITH today AS ( SELECT COALESCE(SUM(w.amount), 0) as sum, - COALESCE(COUNT(*), 0) as count + COUNT(*) as count FROM blocks_withdrawals w INNER JOIN blocks b ON b.blockroot = w.block_root AND b.status = '1' WHERE w.block_slot >= $1