tango-app-api-trax 3.7.72 → 3.7.73
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
|
@@ -2182,7 +2182,7 @@ export async function submitChecklist( req, res ) {
|
|
|
2182
2182
|
flagCount: updateData.questionFlag,
|
|
2183
2183
|
checklistName: getchecklist[0].checkListName,
|
|
2184
2184
|
submittedBy: getchecklist[0].userName,
|
|
2185
|
-
time: updateData.
|
|
2185
|
+
time: updateData.submitTime_string,
|
|
2186
2186
|
domain: `${JSON.parse( process.env.URL ).domain}/manage/trax/flags`,
|
|
2187
2187
|
};
|
|
2188
2188
|
const fileContent = fs.readFileSync( path.resolve( path.dirname( '' ) ) + '/src/hbs/flag.hbs', 'utf8' );
|
|
@@ -3826,6 +3826,7 @@ export async function taskQuestionList( req, res ) {
|
|
|
3826
3826
|
} else {
|
|
3827
3827
|
logger.info( `v5 => Task Continue => store Name: ${getchecklist[0].storeName}, User Email: ${getchecklist[0].userEmail}, Task Name: ${getchecklist[0].checkListName}` );
|
|
3828
3828
|
let bucket = JSON.parse( process.env.BUCKET );
|
|
3829
|
+
let cdnurl = JSON.parse( process.env.CDNURL );
|
|
3829
3830
|
for ( let [ secIndex, section ] of getchecklist[0].questionAnswers.entries() ) {
|
|
3830
3831
|
for ( let [ questionIndex, question ] of section.questions.entries() ) {
|
|
3831
3832
|
let Multianswer = [];
|
|
@@ -3910,7 +3911,7 @@ export async function taskQuestionList( req, res ) {
|
|
|
3910
3911
|
}
|
|
3911
3912
|
if ( question.answerType == 'multipleImage' || question.answerType == 'image/video' ) {
|
|
3912
3913
|
if ( userAns && userAns.answer && userAns.answer != '' ) {
|
|
3913
|
-
let manswer =
|
|
3914
|
+
let manswer = `${cdnurl.TraxAnswerCDN}${userAns.answer}`;
|
|
3914
3915
|
Multianswer.push( { 'answer': manswer, 'no': userAnsIndex, 'validationAnswer': '', ...( question.answerType == 'image/video' && { answerType: userAns?.answerType } ) } );
|
|
3915
3916
|
} else {
|
|
3916
3917
|
|
package/src/hbs/template.hbs
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<title>{{data.checkListName}}</title>
|
|
6
6
|
<style type="text/css">
|
|
7
|
+
|
|
8
|
+
body {
|
|
9
|
+
font-family: Inter !important;
|
|
10
|
+
}
|
|
7
11
|
.pdffile {
|
|
8
12
|
position: relative;
|
|
9
13
|
font-family: Inter !important;
|
|
@@ -209,7 +213,7 @@
|
|
|
209
213
|
{{#eq sopFlag false }}
|
|
210
214
|
<span id="agreed">{{answer}}</span><br>
|
|
211
215
|
{{/eq}}
|
|
212
|
-
{{#
|
|
216
|
+
{{#eq validation true}}
|
|
213
217
|
{{#eq validationType 'Capture Image'}}
|
|
214
218
|
<img src = "{{validationAnswer}}" alt="test" width="200" height="180">
|
|
215
219
|
{{/eq}}
|
|
@@ -219,7 +223,7 @@
|
|
|
219
223
|
{{#eq validationType 'Descriptive Answer'}}
|
|
220
224
|
{{validationAnswer}}
|
|
221
225
|
{{/eq}}
|
|
222
|
-
{{/
|
|
226
|
+
{{/eq}}
|
|
223
227
|
{{/if}}
|
|
224
228
|
{{#eq ../answerType 'video'}}
|
|
225
229
|
<a href="{{answer}}" target="_blank" style="text-decoration: underline;color:#0085D2"
|