tango-app-api-audit 3.3.0-alpha.23 → 3.3.0-alpha.24
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
|
@@ -240,7 +240,7 @@ export async function getAuditFile( req, res ) {
|
|
|
240
240
|
const userAssign = await aggregateAssignAudit( query );
|
|
241
241
|
if ( userAssign.length > 0 ) {
|
|
242
242
|
logger.info( 'Hit in user assign', { inputData } );
|
|
243
|
-
userAssign[0].
|
|
243
|
+
userAssign[0].auditType == 'Audit' ?
|
|
244
244
|
( msg = {
|
|
245
245
|
store_id: userAssign[0].storeId,
|
|
246
246
|
curr_date: userAssign[0].fileDate,
|
|
@@ -250,7 +250,7 @@ export async function getAuditFile( req, res ) {
|
|
|
250
250
|
( msg = {
|
|
251
251
|
store_id: userAssign[0].storeId,
|
|
252
252
|
curr_date: userAssign[0].fileDate,
|
|
253
|
-
audit_type: userAssign[0].
|
|
253
|
+
audit_type: userAssign[0].auditType,
|
|
254
254
|
total_count: userAssign[0].fileCount,
|
|
255
255
|
zone_id: userAssign[0].zoneName,
|
|
256
256
|
} );
|
|
@@ -1143,6 +1143,7 @@ export async function saveDraft( req, res ) {
|
|
|
1143
1143
|
const storeQuery = {
|
|
1144
1144
|
storeId: inputData.storeId,
|
|
1145
1145
|
fileDate: inputData.fileDate,
|
|
1146
|
+
zoneName: inputData.zoneName,
|
|
1146
1147
|
};
|
|
1147
1148
|
|
|
1148
1149
|
let storeRecord = {
|
|
@@ -12,7 +12,7 @@ auditRouter.get( '/clients', isAllowedSessionHandler, validate( clientValid ), c
|
|
|
12
12
|
auditRouter.post( '/audit-stores', isAllowedSessionHandler, validate( auditStoreValid ), auditStoreList );
|
|
13
13
|
auditRouter.get( '/tango-users', isAllowedSessionHandler, auditUserList );
|
|
14
14
|
|
|
15
|
-
//
|
|
15
|
+
// Audit Mapping
|
|
16
16
|
auditRouter.get( '/get-file', isAllowedSessionHandler, validate( getFileValid ), isExistsQueue, getAuditFile );
|
|
17
17
|
auditRouter.post( '/save-draft', isAllowedSessionHandler, validate( saveDraftValid ), saveDraft );
|
|
18
18
|
auditRouter.get( '/get-drafted-data', isAllowedSessionHandler, validate( getDraftedDataValid ), getDraftedData );
|