Commit e7396ed4efa860539b216900f87b9d0eb225c472
add opts.index for manual index selection
see ssbc/patchwork#556Matt McKegg committed on 6/14/2017, 5:04:11 AM
Parent: 1e889341c1434233392cb519e6bfe89acf966a5c
Files changed
lib/flumeview-links-raw.js | changed |
lib/flumeview-links-raw.js | |||
---|---|---|---|
@@ -63,8 +63,13 @@ | |||
63 | 63 … | q = {} | |
64 | 64 … | ||
65 | 65 … | var index = select(indexes, q) | |
66 | 66 … | ||
67 … | + // HACK: allow manual selection of indexes | ||
68 … | + if (opts.index) { | ||
69 … | + index = indexes.find(x => x.key === opts.index) | ||
70 … | + } | ||
71 … | + | ||
67 | 72 … | if(!index) | |
68 | 73 … | return pull( | |
69 | 74 … | log.stream({ | |
70 | 75 … | values: true, seqs: false, live: opts.live, limit: opts.limit, reverse: opts.reverse |
Built with git-ssb-web