database/postgres: fix inverted networkID check in ListWebPushSubscriptions

Same as 02844ca9df ("database/postgres: fix inverted networkID
check in StoreWebPushSubscription").
This commit is contained in:
Simon Ser 2022-07-27 09:48:52 +02:00
parent 02844ca9df
commit ce19f76673
1 changed files with 1 additions and 1 deletions

View File

@ -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, `