tango-app-api-trax 3.6.0-task-2 → 3.6.0-task-3
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
|
@@ -2024,7 +2024,7 @@ export async function submitTask( req, res ) {
|
|
|
2024
2024
|
|
|
2025
2025
|
if ( updateResult.modifiedCount > 0 ) {
|
|
2026
2026
|
if ( submittype === 'submit' ) {
|
|
2027
|
-
const excludedChecklists = [ 'Store Hygiene Check'
|
|
2027
|
+
const excludedChecklists = [ 'Store Hygiene Check' ];
|
|
2028
2028
|
if ( !excludedChecklists.includes( checklist.checkListName ) ) {
|
|
2029
2029
|
const query1 = [
|
|
2030
2030
|
{
|
|
@@ -2236,6 +2236,8 @@ export async function submiteyeTestTask( req, res ) {
|
|
|
2236
2236
|
|
|
2237
2237
|
if ( updateResult.modifiedCount > 0 ) {
|
|
2238
2238
|
if ( submittype === 'submit' ) {
|
|
2239
|
+
// const excludedChecklists = [ 'Store Hygiene Check' ];
|
|
2240
|
+
// if ( !excludedChecklists.includes( checklist.checkListName ) ) {
|
|
2239
2241
|
const query1 = [
|
|
2240
2242
|
{
|
|
2241
2243
|
$match: {
|
|
@@ -2262,6 +2264,7 @@ export async function submiteyeTestTask( req, res ) {
|
|
|
2262
2264
|
await processedTask.deleteMany( { _id: { $in: deleteIds } } );
|
|
2263
2265
|
}
|
|
2264
2266
|
}
|
|
2267
|
+
// }
|
|
2265
2268
|
} else if ( submittype === 'draft' ) {
|
|
2266
2269
|
const query2 = [
|
|
2267
2270
|
{
|