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

View File

@ -733,7 +733,7 @@ func (db *PostgresDB) ListWebPushSubscriptions(ctx context.Context, userID, netw
nullNetworkID := sql.NullInt64{ nullNetworkID := sql.NullInt64{
Int64: networkID, Int64: networkID,
Valid: networkID == 0, Valid: networkID != 0,
} }
rows, err := db.db.QueryContext(ctx, ` rows, err := db.db.QueryContext(ctx, `