Skip to content

Commit

Permalink
fix: exception when change your config.delegate to other name, you wi…
Browse files Browse the repository at this point in the history
…ll get an TypeError (#84)

Co-authored-by: Yiyu He <[email protected]>
  • Loading branch information
bianchui and dead-horse authored Jul 1, 2020
1 parent a837471 commit 665bbd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ module.exports = app => {
try {
await database.authenticate();
} catch (e) {
if (app.model[AUTH_RETRIES] >= 3) throw e;
if (database[AUTH_RETRIES] >= 3) throw e;

// sleep 1s to retry, max 3 times
database[AUTH_RETRIES] += 1;
Expand Down

0 comments on commit 665bbd6

Please sign in to comment.