fix: apply filters and precomputation to streams after each group fetch

This commit is contained in:
Viren070
2025-06-27 17:00:24 +01:00
parent 13c526e639
commit 78144d0213
+3 -3
View File
@@ -132,13 +132,13 @@ ${errorStreams.length > 0 ? ` ❌ Errors : ${errorStreams.map((s) => `
const finalStreams = results.flatMap((r) =>
r.success ? r.streams : []
) as ParsedStream[];
// const filteredStreams = await this.filter.filter(finalStreams, type, id);
// await this.precompute.precompute(filteredStreams);
const filteredStreams = await this.filter.filter(finalStreams, type, id);
await this.precompute.precompute(filteredStreams);
const groupTime = Date.now() - groupStart;
return {
// results,
totalTime: groupTime,
streams: finalStreams,
streams: filteredStreams,
};
};