Commit 08312384 by Torkel Ödegaard

build: fixed broken elastic unit test

parent a1b543aa
......@@ -27,11 +27,10 @@ export class IndexPattern {
var intervalInfo = intervalMap[this.interval];
var start = moment(from).utc().startOf(intervalInfo.startOf);
var startEpoch = start.valueOf();
var endEpoch = moment(to).utc().startOf(intervalInfo.startOf).valueOf();
var indexList = [];
while (startEpoch <= endEpoch) {
while (start.valueOf() <= endEpoch) {
indexList.push(start.format(this.pattern));
start.add(1, intervalInfo.amount);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment