fix: adjust listChats maxTTL cache

This commit is contained in:
2026-09-20 08:12:21 +08:00
parent 4d70805581
commit 088e5e29f8
+4 -1
View File
@@ -219,7 +219,10 @@ wss.on("connection", (ws) => {
async () => { async () => {
return call(wa, method, params); return call(wa, method, params);
}, },
{ minTimeToStale: method === "listContacts" ? 60 * 60_000 : 5_000 }, {
minTimeToStale: method === "listContacts" ? 60 * 60_000 : 5_000,
maxTimeToLive: method === "listChats" ? 60_000 : undefined,
},
); );
result = res.value; result = res.value;
break; break;