tango-app-api-store-builder 1.0.0-beta-21 → 1.0.0-beta-23
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
|
@@ -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
|
|
|
@@ -805,7 +815,7 @@ export async function fixtureShelfProductv1( req, res ) {
|
|
|
805
815
|
date: currentDate,
|
|
806
816
|
} );
|
|
807
817
|
|
|
808
|
-
const status = mappingCompliance ? mappingCompliance.compliance : '
|
|
818
|
+
const status = mappingCompliance ? mappingCompliance.compliance : '';
|
|
809
819
|
|
|
810
820
|
return { ...mapping.toObject(), ...productData, status };
|
|
811
821
|
} ),
|
|
@@ -865,7 +875,7 @@ export async function fixtureShelfProductv1( req, res ) {
|
|
|
865
875
|
date: currentDate,
|
|
866
876
|
} );
|
|
867
877
|
|
|
868
|
-
const status = mappingCompliance ? mappingCompliance.compliance : '
|
|
878
|
+
const status = mappingCompliance ? mappingCompliance.compliance : '';
|
|
869
879
|
|
|
870
880
|
return {
|
|
871
881
|
...mapping.toObject(),
|
|
@@ -936,7 +946,7 @@ export async function fixtureShelfProductv1( req, res ) {
|
|
|
936
946
|
date: currentDate,
|
|
937
947
|
} );
|
|
938
948
|
|
|
939
|
-
const status = mappingCompliance ? mappingCompliance.compliance : '
|
|
949
|
+
const status = mappingCompliance ? mappingCompliance.compliance : '';
|
|
940
950
|
|
|
941
951
|
return {
|
|
942
952
|
...mapping.toObject(),
|