tango-app-api-store-builder 1.0.0-beta-94 → 1.0.0-beta-95
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
|
@@ -11,6 +11,8 @@ import * as checklistService from '../service/checklist.service.js';
|
|
|
11
11
|
import timeZone from 'dayjs/plugin/timezone.js';
|
|
12
12
|
import * as planoProductService from '../service/planoProduct.service.js';
|
|
13
13
|
import * as floorService from '../service/storeBuilder.service.js';
|
|
14
|
+
import mongoose from 'mongoose';
|
|
15
|
+
|
|
14
16
|
dayjs.extend( timeZone );
|
|
15
17
|
|
|
16
18
|
async function createUser( data ) {
|
|
@@ -491,7 +493,8 @@ export async function updateAnswers( req, res ) {
|
|
|
491
493
|
}
|
|
492
494
|
} );
|
|
493
495
|
|
|
494
|
-
let taskDetails = await processedService.findOne( { date_string: dayjs().format( 'YYYY-MM-DD' ), userId: req.user._id, isPlano: true,
|
|
496
|
+
let taskDetails = await processedService.findOne( { date_string: dayjs().format( 'YYYY-MM-DD' ), userId: req.user._id, isPlano: true,
|
|
497
|
+
planoType: req.body.type, planoId: new mongoose.Types.ObjectId( req.body.planoId ), floorId: new mongoose.Types.ObjectId( req.body.floorId ) } );
|
|
495
498
|
|
|
496
499
|
|
|
497
500
|
let data = {
|