mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-23 15:36:33 +00:00
fix(server): upload filters answer multer once on a throwing callback; positive call-graph gate test
This commit is contained in:
@@ -62,7 +62,7 @@ export async function getActiveNoticesFor(
|
||||
// `evaluate` runs inside a .filter(), which cannot await, so the addon flags
|
||||
// the registry is able to ask about are resolved up front and handed to it as
|
||||
// a lookup. The ids come from the notices themselves, so every question the
|
||||
// conditions can ask has an answer here and the fallback is unreachable.
|
||||
// conditions can ask has an answer here.
|
||||
const addonFlags = new Map<string, boolean>();
|
||||
for (const condition of SYSTEM_NOTICES.flatMap(n => n.conditions)) {
|
||||
if (condition.kind === 'addonEnabled' && !addonFlags.has(condition.addonId)) {
|
||||
|
||||
Reference in New Issue
Block a user