-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
options.ignore #29
options.ignore #29
Conversation
c1cb457
to
201407e
Compare
Works for me. As the option is called "ignore" we should probably change the title of this issue to avoid confusion. As I understand it, the |
201407e
to
0572dbe
Compare
I don't think this was built on master |
0572dbe
to
696a1af
Compare
var db = this; | ||
var key, pub; | ||
var turnedOff = false; | ||
return db.get(configId).catch(function (err) { | ||
var ignore = ['_id', '_rev'] | ||
var modP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need modp any more
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops sorry I had it removed, the rebase must have readded it, I’ll fix in in a minute
696a1af
to
9014984
Compare
done updating |
I just got back from vacation and am digging out so I'll try to get to this sometime today or tommorow |
return db.get(configId).catch(function (err) { | ||
var ignore = ['_id', '_rev'] | ||
|
||
if (options && options.ignore) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we probably want to check it's actually an array
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need, .concat
takes care of it
> [1].concat(2)
[ 1, 2 ]
> [1].concat([3,4])
[ 1, 3, 4 ]
few nits otherwise looks good |
looking good, feel free to squash and merge |
I’ve added and pushed a |
follow up for #25, based on #26