fix(backend): explicit types on linked-signals toSorted comparator

Resolves implicit-any type errors blocking the Convex dev server from
starting on master after the dogfood merge.
This commit is contained in:
-Puter
2026-07-25 02:39:45 +05:30
parent a11ed988fb
commit 19f771ea71

View File

@@ -498,7 +498,7 @@ export const listLinkedSignalsForProject = query({
result[String(issue._id)] = signals
.filter((entry): entry is LinkedSignalView => entry !== null)
// Deterministic order: newest linked Signal first.
.toSorted((a, b) => b.createdAt - a.createdAt);
.sort((a: LinkedSignalView, b: LinkedSignalView) => b.createdAt - a.createdAt);
}
return result;
},