From 02844ca9df1098333ec53efd3bbad22ec6f5955f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 25 Jul 2022 19:32:09 +0200 Subject: [PATCH] database/postgres: fix inverted networkID check in StoreWebPushSubscription Presented without comment. --- database/postgres.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/postgres.go b/database/postgres.go index 6e2a6d7..3473bae 100644 --- a/database/postgres.go +++ b/database/postgres.go @@ -763,7 +763,7 @@ func (db *PostgresDB) StoreWebPushSubscription(ctx context.Context, userID, netw nullNetworkID := sql.NullInt64{ Int64: networkID, - Valid: networkID == 0, + Valid: networkID != 0, } var err error