Skip to content

Commit

Permalink
Fix error options mongo model increment & decrement methods
Browse files Browse the repository at this point in the history
  • Loading branch information
welefen committed Dec 7, 2016
1 parent 0b34349 commit 3cb8960
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/model/mongo.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export default class extends Base {
* @return {Promise} []
*/
async increment(field, step = 1){
let options = await this.parseOptions(options);
let options = await this.parseOptions();
return this.db().update({
$inc: {
[field]: step
Expand All @@ -302,7 +302,7 @@ export default class extends Base {
* @return {Promise} []
*/
async decrement(field, step = 1){
let options = await this.parseOptions(options);
let options = await this.parseOptions();
return this.db().update({
$inc: {
[field]: 0 - step
Expand Down

0 comments on commit 3cb8960

Please sign in to comment.