mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-18 20:24:47 +00:00
refactor: simplify gateway session resolution
This commit is contained in:
@@ -152,7 +152,7 @@ export async function resolveSessionKeyFromResolveParams(params: {
|
||||
),
|
||||
};
|
||||
}
|
||||
return { ok: true, key: String(matches[0]?.key ?? "") };
|
||||
return { ok: true, key: matches[0].key };
|
||||
}
|
||||
|
||||
const parsedLabel = parseSessionLabel(p.label);
|
||||
@@ -197,5 +197,5 @@ export async function resolveSessionKeyFromResolveParams(params: {
|
||||
};
|
||||
}
|
||||
|
||||
return { ok: true, key: String(list.sessions[0]?.key ?? "") };
|
||||
return { ok: true, key: list.sessions[0].key };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user