Implemented ES6 default parameters where valid in ExportAdapter and RestQuery
This commit is contained in:
@@ -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 = {};
|
||||
|
||||
Reference in New Issue
Block a user