Refactoring mistake fixed from object decomposition in authrecall

This commit is contained in:
mhelander 2018-01-29 22:18:31 +02:00
parent 7c85a8fa4a
commit e5b8cc928f

3
sea.js
View File

@ -499,7 +499,8 @@
let err
// Yes, then attempt to log into each one until we find ours!
// (if two users have the same username AND the same password... that would be bad)
const [ { key, at, proof } ] = await Promise.all(aliases.filter(({ at: { put } = {} }) => !!put)
const [ { key, at, proof } = {} ] = await Promise
.all(aliases.filter(({ at: { put } = {} }) => !!put)
.map(async ({ at, pub }) => {
const readStorageData = async () => {
const props = parseProps(await seaRead(remember, pub, true))