Skip to content

Commit

Permalink
chore: another clg
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Oct 26, 2022
1 parent d8dae20 commit 83367b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions packages/access-api/src/kvs/accounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ export class Accounts {
*/
async hasAccounts(email) {
const r = await this.kv.get(email)
// eslint-disable-next-line no-console
console.log(
'🚀 ~ file: accounts.js ~ line 97 ~ Accounts ~ hasAccounts ~ r',
r
)
return Boolean(r)
}
}
4 changes: 2 additions & 2 deletions packages/access-api/test/account-recover.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ test('should return account/login', async (t) => {
// eslint-disable-next-line no-console
console.log('🚀 ~ file: account-recover.test.js ~ line 50 ~ test ~ inv', inv)

if (!inv) {
return t.fail()
if (!inv || inv.error) {
return t.fail('failed to recover')
}

const del = await stringToDelegation(
Expand Down

0 comments on commit 83367b9

Please sign in to comment.