TuMorrow
10/07/2022, 7:29 PMcreateNewSession
implementation. I am trying to do so, but the new function doesn't seem to get called. Here is a code snippet
ts
SessionNode.init({
override: {
functions: (originalImplementation) => {
return {
...originalImplementation,
createNewSession: async function (input) {
console.log("function is working!"); // <-- this doesn't get logged
return originalImplementation.createNewSession(
input
);
},
};
},
},
}),
Can you tell me if I am doing something wrong? Thanks in advancerp
10/08/2022, 4:39 AMTuMorrow
10/08/2022, 8:20 AMrp
10/08/2022, 8:23 AMTuMorrow
10/08/2022, 10:41 AMrp
10/08/2022, 10:41 AMTuMorrow
10/08/2022, 10:43 AMrp
10/08/2022, 10:48 AMTuMorrow
10/08/2022, 10:52 AMrp
10/08/2022, 10:53 AMTuMorrow
10/08/2022, 10:54 AMrp
10/08/2022, 10:55 AMTuMorrow
10/09/2022, 12:19 PMmergeIntoAccessTokenPayload
method it extends the session properly. This still doesn't solve my problem though since I need the createNewSession
override to work.rp
10/09/2022, 12:21 PMTuMorrow
10/09/2022, 4:51 PMrp
10/09/2022, 4:59 PM