Skip to content

Commit fd932c7

Browse files
committed
fix bugs preventing client rules from being updated
1 parent 46a9f5c commit fd932c7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

backend/internal/access-list.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,15 @@ const internalAccessList = {
168168
}
169169
});
170170
}
171-
171+
})
172+
.then(() => {
172173
// Check for clients and add/update/remove them
173174
if (typeof data.clients !== 'undefined' && data.clients) {
174175
let promises = [];
175176

176177
data.clients.map(function (client) {
177178
if (client.address) {
178-
promises.push(accessListAuthModel
179+
promises.push(accessListClientModel
179180
.query()
180181
.insert({
181182
access_list_id: data.id,

0 commit comments

Comments
 (0)