Implemented ES6 default parameters where valid in ExportAdapter and RestQuery

This commit is contained in:
ksaldana1
2016-02-09 15:47:13 -06:00
parent 67959e541d
commit 4f128d761e
2 changed files with 7 additions and 13 deletions

View File

@@ -11,13 +11,12 @@ var Parse = require('parse/node').Parse;
// include
// keys
// redirectClassNameForKey
function RestQuery(config, auth, className, restWhere, restOptions) {
restOptions = restOptions || {};
function RestQuery(config, auth, className, restWhere = {}, restOptions = {}) {
this.config = config;
this.auth = auth;
this.className = className;
this.restWhere = restWhere || {};
this.restWhere = restWhere;
this.response = null;
this.findOptions = {};