Compare commits

...
2 Commits
Author SHA1 Message Date
gisle 1583eb412e That's why I should always test two-line fixes...
the build failed
2019-08-02 20:42:04 +02:00
gisle 5c094a2471 Fixed prev logs not allowing overlaps with next logs.
the build was successful
2019-08-02 20:36:30 +02:00
@@ -24,7 +24,7 @@ module.exports = class {
const characterIds = log.characters.map(c => c.id);
const nexts = []
const prevs = []
const foundGroups = {}
let foundGroups = {}
let foundChannel = false
for (let i = index - 1; i >= 0; --i) {
@@ -52,6 +52,9 @@ module.exports = class {
}
}
foundGroups = {}
foundChannel = false
for (let i = index + 1; i < logs.length; ++i) {
const log2 = logs[i]
const hasEvent = (log.eventName ? log.eventName === log2.eventName : false)