fix: finish 2.9.0 plugin moves and get every check green

This commit is contained in:
LukeGus committed 2026-09-24 23:35:18 -05:00
1 parent 8c1e02af89
commit 6489b62ece
335 files changed
+29878 -17749

No files matched your search

+5 -1
View File
@@ -82,10 +82,14 @@ async function openTunnel(
endpoint: WebEndpoint,
): Promise<{ bindHost: string; bindPort: number }> {
const userId = ctx.currentActor();
let tunnels: TunnelsAccess;
let tunnels: TunnelsAccess | undefined;
try {
tunnels = ctx.services.get<TunnelsAccess>("tunnels.access", { userId });
} catch {
tunnels = undefined;
}
// A missing provider hands back an empty handle rather than throwing.
if (typeof tunnels?.forward !== "function") {
throw Object.assign(new Error("The tunnels plugin is not available"), {
status: 503,
});