mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-22 21:08:13 -05:00
fix bugs preventing client rules from being updated
This commit is contained in:
parent
46a9f5cb96
commit
fd932c7678
@ -168,14 +168,15 @@ const internalAccessList = {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
})
|
||||
.then(() => {
|
||||
// Check for clients and add/update/remove them
|
||||
if (typeof data.clients !== 'undefined' && data.clients) {
|
||||
let promises = [];
|
||||
|
||||
data.clients.map(function (client) {
|
||||
if (client.address) {
|
||||
promises.push(accessListAuthModel
|
||||
promises.push(accessListClientModel
|
||||
.query()
|
||||
.insert({
|
||||
access_list_id: data.id,
|
||||
|
Loading…
Reference in New Issue
Block a user