From 60abea1454eab53a4e10f80a10f812b1e8683842 Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Tue, 14 Apr 2020 23:31:35 -0700 Subject: [PATCH] typo and validAuthorisations bug fix --- js/modules/loki_file_server_api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/modules/loki_file_server_api.js b/js/modules/loki_file_server_api.js index b6050a6be..13ca54800 100644 --- a/js/modules/loki_file_server_api.js +++ b/js/modules/loki_file_server_api.js @@ -110,7 +110,7 @@ class LokiFileServerInstance { return; } const validAuthorisations = authorisations.filter( - a => a && typeof auth === 'object' + a => a && typeof a === 'object' ); await Promise.all( validAuthorisations.map(async auth => { @@ -231,7 +231,7 @@ class LokiFileServerInstance { Object.keys(newSlavePrimaryMap).forEach(slaveKey => { if (newSlavePrimaryMap[slaveKey] === primaryPubKey) { log.warn( - `removing unverifible ${slaveKey} to ${primaryPubKey} mapping` + `removing unverifiable ${slaveKey} to ${primaryPubKey} mapping` ); delete newSlavePrimaryMap[slaveKey]; }