mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-11 04:36:20 +00:00
add await for reset client traffic
This commit is contained in:
parent
2b80b9174c
commit
7a2207562f
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue