From ce19f76673b5bfd369766f6696e042b0a8df7691 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 27 Jul 2022 09:48:52 +0200 Subject: [PATCH] database/postgres: fix inverted networkID check in ListWebPushSubscriptions Same as 02844ca9df10 ("database/postgres: fix inverted networkID check in StoreWebPushSubscription"). --- database/postgres.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/postgres.go b/database/postgres.go index 3473bae..98030fe 100644 --- a/database/postgres.go +++ b/database/postgres.go @@ -733,7 +733,7 @@ func (db *PostgresDB) ListWebPushSubscriptions(ctx context.Context, userID, netw nullNetworkID := sql.NullInt64{ Int64: networkID, - Valid: networkID == 0, + Valid: networkID != 0, } rows, err := db.db.QueryContext(ctx, `