Skip to content

Commit 665bbd6

Browse files
bianchuidead-horse
andauthored
fix: exception when change your config.delegate to other name, you will get an TypeError (#84)
Co-authored-by: Yiyu He <[email protected]>
1 parent a837471 commit 665bbd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ module.exports = app => {
133133
try {
134134
await database.authenticate();
135135
} catch (e) {
136-
if (app.model[AUTH_RETRIES] >= 3) throw e;
136+
if (database[AUTH_RETRIES] >= 3) throw e;
137137

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

0 commit comments

Comments
 (0)