mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-05-06 15:18:51 +00:00
fix finding client issue #884
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
This commit is contained in:
parent
51a7c56cae
commit
ae7283fc73
1 changed files with 1 additions and 2 deletions
|
@ -726,8 +726,7 @@
|
|||
});
|
||||
},
|
||||
findIndexOfClient(clients, client) {
|
||||
firstKey = Object.keys(client)[0];
|
||||
return clients.findIndex(c => c[firstKey] === client[firstKey]);
|
||||
return clients.findIndex(item => JSON.stringify(item) === JSON.stringify(client));
|
||||
},
|
||||
async addClient(clients, dbInboundId) {
|
||||
const data = {
|
||||
|
|
Loading…
Reference in a new issue