Skip to content

Commit

Permalink
fix(resolve): Check if resolved version has plugin support
Browse files Browse the repository at this point in the history
fix #425
  • Loading branch information
wzrdtales committed Oct 10, 2016
1 parent 68de844 commit b681257
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bin/db-migrate
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@ resolve( 'db-migrate', {
}

dbmigrate = DBMigrate.getInstance();
dbmigrate.registerAPIHook()
.then( function() {
if(dbmigrate.registerAPIHook)
dbmigrate.registerAPIHook()
.then( function() {

dbmigrate.run();
} );
else
dbmigrate.run();
} );
} );

0 comments on commit b681257

Please sign in to comment.