tango-app-api-store-builder 1.0.0-beta-68 → 1.0.0-beta-70
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
|
@@ -2041,6 +2041,7 @@ export async function storeFixturesTask( req, res ) {
|
|
|
2041
2041
|
const compliance = await planoTaskComplianceService.findOne( {
|
|
2042
2042
|
fixtureId: fixture._id,
|
|
2043
2043
|
type: req.body?.type ? req.body.type : 'fixture',
|
|
2044
|
+
date_string: req.body?.date,
|
|
2044
2045
|
}, { status: 1 } );
|
|
2045
2046
|
|
|
2046
2047
|
const shelves = await fixtureShelfService.find( { fixtureId: fixture._id }, { shelfNumber: 1, sectionName: 1, sectionZone: 1, shelfCapacity: 1 } );
|
|
@@ -2120,6 +2121,7 @@ export async function storeFixturesTask( req, res ) {
|
|
|
2120
2121
|
const compliance = await planoTaskComplianceService.findOne( {
|
|
2121
2122
|
fixtureId: fixture._id,
|
|
2122
2123
|
type: req.body?.type ? req.body.type : 'fixture',
|
|
2124
|
+
date_string: req.body?.date,
|
|
2123
2125
|
}, { status: 1 } );
|
|
2124
2126
|
|
|
2125
2127
|
const shelves = await fixtureShelfService.find( { fixtureId: fixture._id }, { shelfNumber: 1, sectionName: 1, sectionZone: 1, shelfCapacity: 1 } );
|
|
@@ -495,6 +495,9 @@ export async function getFixtureDetails( req, res ) {
|
|
|
495
495
|
query['floorId'] = req.query.floorId;
|
|
496
496
|
}
|
|
497
497
|
|
|
498
|
+
if ( req.query?.date ) {
|
|
499
|
+
query['date_string'] = req.query?.date;
|
|
500
|
+
}
|
|
498
501
|
let fixtureDetails = await planoTaskService.findOne( query );
|
|
499
502
|
if ( !fixtureDetails ) {
|
|
500
503
|
return res.sendError( 'No data found', 204 );
|