apiGetDailyReprtSum javítva.
This commit is contained in:
parent
9d07f9d3bd
commit
ed7cbd167e
|
|
@ -33,7 +33,7 @@ exports.apiGetDailyReportSum=asyncHandler(async (req,res)=>{
|
|||
}
|
||||
])
|
||||
|
||||
if (count) wtSum=count[0].count*8
|
||||
if (count.length) wtSum=count[0].count*8
|
||||
res.send({'response':'ok', 'dailyReportSum':wtSum});
|
||||
}catch(err){
|
||||
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ block content
|
|||
img(src='/pdf.jpg',align='right', width='16px', height='16px')
|
||||
div.col-md-5
|
||||
//a(href="/cmfile/"+encodeURIComponent(work._id)+"/"+i)= file
|
||||
a(href=`localhost:5000/api/db/getDocumentByPath?param=${encodeURIComponent(work.pathCM+"\\"+encodeURIComponent(work.filesCM[i]))}` target='_blank')= file
|
||||
a(href=`https://cmmunkaszam.klelectro.eu/api/db/getDocumentByPath?param=${encodeURIComponent(work.pathCM+"\\"+encodeURIComponent(work.filesCM[i]))}` target='_blank')= file
|
||||
|
||||
|
||||
.panel-footer
|
||||
|
|
|
|||
Loading…
Reference in New Issue