From 39e0b88871be066f7bc1bf35ead8c8f00d2d098f Mon Sep 17 00:00:00 2001 From: Sanketh Katta Date: Mon, 25 Jan 2016 11:57:28 -0800 Subject: [PATCH] Fix promise issue for down migrations. --- lib/skeleton.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/skeleton.js b/lib/skeleton.js index 00fcbce9..109bf1ce 100644 --- a/lib/skeleton.js +++ b/lib/skeleton.js @@ -121,8 +121,8 @@ var Skeleton = Class.extend({ if( migration instanceof Promise ) { migration - .then(function( Promise ) { - if( Promise !== undefined && cb_executed === false ) { + .then(function() { + if( cb_executed === false ) { cb_executed = true; resolve();