tango-app-api-store-builder 1.0.0-beta-155 → 1.0.0-beta-156
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
|
@@ -461,6 +461,8 @@ export async function updateStorePlano( req, res ) {
|
|
|
461
461
|
if ( mongoose.Types.ObjectId.isValid( fixture._id ) ) {
|
|
462
462
|
const updatedFixture = await storeFixtureService.upsertOne( { _id: new mongoose.Types.ObjectId( fixture._id ) }, fixture );
|
|
463
463
|
|
|
464
|
+
await storeFixtureService.removeKeys( { fixtureType: 'floor', _id: fixture._id }, { $unset: { associatedElementType: '', associatedElementNumber: '' } } );
|
|
465
|
+
|
|
464
466
|
await fixtureShelfService.deleteMany( { fixtureId: new mongoose.Types.ObjectId( fixture._id ) } );
|
|
465
467
|
|
|
466
468
|
fixture.shelfConfig.forEach( async ( shelf ) => {
|