From 7a2207562ffa1f531e35370ebd842238a54a2ff2 Mon Sep 17 00:00:00 2001 From: ali rahimi Date: Mon, 13 Jan 2025 18:15:37 +0100 Subject: [PATCH] add await for reset client traffic --- web/html/xui/inbounds.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index 739dc932..23e697b8 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -1289,10 +1289,10 @@ }, resetClientTrafficHandler(client, dbInboundId, clients = []) { if (clients.length > 0){ - clients.forEach((client) => { + clients.forEach(async (client) => { const inbound = this.dbInbounds.find(inbound => inbound.id === client.inboundId) if(inbound && this.hasClientStats(inbound, client.email)) { - this.submit('/panel/inbound/' + client.inboundId + '/resetClientTraffic/' + client.email) + await this.submit('/panel/inbound/' + client.inboundId + '/resetClientTraffic/' + client.email) } }) }else {