ensure updateEntries is always set in the result of GapWriter

This commit is contained in:
Bruno Windels 2021-05-21 16:58:04 +02:00
parent c934049523
commit b55efb7f11

View file

@ -231,7 +231,7 @@ export class GapWriter {
if (chunk.length === 0) {
fragmentEntry.edgeReached = true;
await txn.timelineFragments.update(fragmentEntry.fragment);
return {entries: [fragmentEntry], fragments: []};
return {entries: [fragmentEntry], updatedEntries: [], fragments: []};
}
// find last event in fragment so we get the eventIndex to begin creating keys at