}, function(err, numReplaced) {
      if (numReplaced <= 0) {
        err = new _appError(err, _i18n.__('error.notes_update_err'));
      }
      return cbMain(err, noteObj);