From 17685802db27082cd507ce37480b5bfe1f3bdce7 Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Tue, 19 May 2015 12:52:58 -0700 Subject: [PATCH] Use standard promise name At some point `complete` stopped working as it just throws an error now. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 0d175ed..a9b9c4f 100644 --- a/index.js +++ b/index.js @@ -35,7 +35,7 @@ exports.register = function (plugin, options, next) { sequelize .authenticate() - .complete(function(err) { + .then(function(err) { if (!!err) { plugin.log(['hapi-sequelize', 'error'], 'Error connecting to database. ' + err); return next(err);