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}`, OriginatingTo: `twitch:channel:${message.channel}`,
}); });
const storePath = core.channel.session.resolveStorePath( const storePath = core.channel.session.resolveStorePath(cfg.session?.store, {
config as Parameters<typeof core.channel.session.resolveStorePath>[0], agentId: route.agentId,
{ agentId: route.agentId }, });
);
await core.channel.session.recordInboundSession({ await core.channel.session.recordInboundSession({
storePath, storePath,
sessionKey: ctxPayload.SessionKey ?? route.sessionKey, sessionKey: ctxPayload.SessionKey ?? route.sessionKey,