From fd932c76789fcf55b113f4982b755cde9915a8aa Mon Sep 17 00:00:00 2001 From: Kyle Klaus Date: Fri, 10 Apr 2020 17:42:44 -0700 Subject: [PATCH] fix bugs preventing client rules from being updated --- backend/internal/access-list.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/internal/access-list.js b/backend/internal/access-list.js index 0411b59..0f62c73 100644 --- a/backend/internal/access-list.js +++ b/backend/internal/access-list.js @@ -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,