tango-app-api-store-builder 1.0.0-beta-21 → 1.0.0-beta-22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-store-builder",
3
- "version": "1.0.0-beta-21",
3
+ "version": "1.0.0-beta-22",
4
4
  "description": "storeBuilder",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -582,9 +582,17 @@ export async function storeFixturesv1( req, res ) {
582
582
  } ),
583
583
  );
584
584
 
585
+ const otherElements = await storeFixtureService.find( {
586
+ floorId: floor._id,
587
+ associatedElementType: element.elementType,
588
+ associatedElementNumber: element.elementNumber,
589
+ fixtureType: 'other',
590
+ } );
591
+
585
592
  return {
586
593
  ...element,
587
594
  fixtures: fixturesWithStatus,
595
+ otherElements: otherElements,
588
596
  };
589
597
  } ),
590
598
  );
@@ -616,6 +624,8 @@ export async function storeFixturesv1( req, res ) {
616
624
 
617
625
  const otherElements = await storeFixtureService.find( {
618
626
  floorId: floor._id,
627
+ associatedElementType: { $exists: false },
628
+ associatedElementNumber: { $exists: false },
619
629
  fixtureType: 'other',
620
630
  } );
621
631