fix store path arg

This commit is contained in:
jaydenfyi 2026-01-25 21:50:50 +08:00
parent 506135925b
commit 6d7305c901

View File

@ -86,10 +86,9 @@ async function processTwitchMessage(params: {
OriginatingTo: `twitch:channel:${message.channel}`,
});
const storePath = core.channel.session.resolveStorePath(
config as Parameters<typeof core.channel.session.resolveStorePath>[0],
{ agentId: route.agentId },
);
const storePath = core.channel.session.resolveStorePath(cfg.session?.store, {
agentId: route.agentId,
});
await core.channel.session.recordInboundSession({
storePath,
sessionKey: ctxPayload.SessionKey ?? route.sessionKey,