fix: adjust listChats maxTTL cache
This commit is contained in:
+4
-1
@@ -219,7 +219,10 @@ wss.on("connection", (ws) => {
|
||||
async () => {
|
||||
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;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user