@aws-amplify/datastore 3.7.4-custom-pk.88 → 3.7.4-custom-pk.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -82863,7 +82863,7 @@ function () {
82863
82863
 
82864
82864
  this.query = function (modelConstructor, identifierOrCriteria, paginationProducer) {
82865
82865
  return __awaiter(_this, void 0, void 0, function () {
82866
- var msg, modelDefinition, keyFields, predicate, pagination, result, isSingleFieldIdentifier, returnOne;
82866
+ var msg, modelDefinition, keyFields, predicate, pagination, result, returnOne;
82867
82867
  return __generator(this, function (_a) {
82868
82868
  switch (_a.label) {
82869
82869
  case 0:
@@ -82921,8 +82921,7 @@ function () {
82921
82921
 
82922
82922
  case 2:
82923
82923
  result = _a.sent();
82924
- isSingleFieldIdentifier = keyFields.length === 1;
82925
- returnOne = isSingleFieldIdentifier && (isQueryOne(identifierOrCriteria) || Object(_types__WEBPACK_IMPORTED_MODULE_11__["isIdentifierObject"])(identifierOrCriteria, modelDefinition));
82924
+ returnOne = isQueryOne(identifierOrCriteria) || Object(_types__WEBPACK_IMPORTED_MODULE_11__["isIdentifierObject"])(identifierOrCriteria, modelDefinition);
82926
82925
  return [2
82927
82926
  /*return*/
82928
82927
  , returnOne ? result[0] : result];