Skip to content

Commit

Permalink
changed return from bool to string
Browse files Browse the repository at this point in the history
  • Loading branch information
effy971 committed Nov 6, 2020
1 parent 5b65d73 commit 16f8f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion searchdb.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = async function (email, password) {

if (result !== null) {
successOrFail = true;
return true;
return result.name;
}
} finally {
await client.close();
Expand Down

0 comments on commit 16f8f34

Please sign in to comment.