typo and validAuthorisations bug fix

pull/1061/head
Ryan Tharp 5 years ago
parent 73b6401097
commit 60abea1454

@ -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];
}

Loading…
Cancel
Save