@thefittingroom/sdk 1.1.10 → 1.1.11

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.
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * thefittingroom v1.1.10 (2024-06-20T18:11:48.643Z)
2
+ * thefittingroom v1.1.11 (2024-06-20T18:20:57.355Z)
3
3
  * Copyright 2022-present, TheFittingRoom, Inc. All rights reserved.
4
4
  */
5
5
  // Code generated by tygo. DO NOT EDIT.
@@ -22980,7 +22980,9 @@ class TfrShop {
22980
22980
  }
22981
22981
  async getStyleByBrandStyleId(brandStyleId) {
22982
22982
  try {
22983
- const querySnapshot = await this.firebase.getDocs('styles', [rl('brand_style_id', '==', brandStyleId)]);
22983
+ const constraints = [rl('brand_id', '==', this.brandId)];
22984
+ constraints.push(rl('brand_style_id', '==', brandStyleId));
22985
+ const querySnapshot = await this.firebase.getDocs('styles', constraints);
22984
22986
  return querySnapshot.docs[0].data();
22985
22987
  }
22986
22988
  catch (error) {