Skip to content

Commit f34cbc0

Browse files
committed
Updated dist
1 parent 3d7238b commit f34cbc0

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

dist/av-core-mini.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/av-core.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7509,11 +7509,17 @@
75097509
* @param {Object} options A Backbone-style options object.
75107510
*/
75117511
get: function(objectId, options) {
7512+
if(!objectId) {
7513+
var errorObject = new AV.Error(AV.Error.OBJECT_NOT_FOUND,
7514+
"Object not found.");
7515+
return AV.Promise.error(errorObject);
7516+
}
7517+
75127518
var self = this;
75137519
self.equalTo('objectId', objectId);
75147520

75157521
return self.first().then(function(response) {
7516-
if (response) {
7522+
if (!AV._.isEmpty(response)) {
75177523
return response;
75187524
}
75197525

dist/av-mini.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/av.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7509,11 +7509,17 @@
75097509
* @param {Object} options A Backbone-style options object.
75107510
*/
75117511
get: function(objectId, options) {
7512+
if(!objectId) {
7513+
var errorObject = new AV.Error(AV.Error.OBJECT_NOT_FOUND,
7514+
"Object not found.");
7515+
return AV.Promise.error(errorObject);
7516+
}
7517+
75127518
var self = this;
75137519
self.equalTo('objectId', objectId);
75147520

75157521
return self.first().then(function(response) {
7516-
if (response) {
7522+
if (!AV._.isEmpty(response)) {
75177523
return response;
75187524
}
75197525

0 commit comments

Comments
 (0)