Skip to content

Commit

Permalink
fix(down api): support using down api can specify the destination and…
Browse files Browse the repository at this point in the history
… housekeep the former pull request

Signed-off-by: YI Nicholas <nicholas@fano.ai>
  • Loading branch information
nicholasyih520 authored and YI Nicholas committed Jul 24, 2019
1 parent 805d95e commit 42db883
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ dbmigrate.prototype = {
if (arguments.length > 0) {
if (typeof specification === 'number') {
this.internals.argv.count = arguments[0];
} else if (typeof specification === 'string') {
this.internals.argv.destination = specification;
this.internals.argv.count = Number.MAX_VALUE;
} else if (typeof specification === 'function') {
callback = specification;
}
Expand Down

0 comments on commit 42db883

Please sign in to comment.