perf(wai): 重启把上一次在线的重新登录

dev/supplier-email-drawer
Lei OT 6 months ago
parent 83408b0efb
commit 83e4ae8075

@ -206,7 +206,7 @@ async function resetCurrentConnections() {
* 登录: 当前服务的所有连接
*/
async function loginCurrentConnections() {
const currents = await getConnection({ connect_domain: domain, connect_name: domainName });
const currents = await getConnection({ connect_domain: domain, connect_name: domainName, status: 'open' });
for (const user of currents) {
const { wa_id: waId } = user;
const phone = waId.replace('+', '');

Loading…
Cancel
Save