mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-17 07:12:12 +11:00
another bug pulverised - legrec instead of logsent thanks harrison
This commit is contained in:
parent
c5f646a411
commit
014ae93cfd
1 changed files with 3 additions and 2 deletions
5
index.js
5
index.js
|
|
@ -153,13 +153,14 @@ app.get('/BankF', ensureAuthenticated, async function(req, res){
|
|||
console.log(logrec.timings)
|
||||
console.log("query finished "+Date.now())
|
||||
logsent = logsent.body.value
|
||||
if(logsent == 1 || logsent == -1 || logrec == null){
|
||||
console.log(logsent)
|
||||
if(logsent === 1 || logsent === -1 || logsent == null){
|
||||
logsent = undefined
|
||||
}else{
|
||||
logsent = await logsent.filter(({ from }) => from === req.session.user)
|
||||
}
|
||||
logrec = logrec.body.value
|
||||
if(logrec == 1 || logrec == -1 || logrec == null){
|
||||
if(logrec === 1 || logrec === -1 || logrec === null){
|
||||
logrec = undefined
|
||||
} else{
|
||||
logrec = await logrec.filter(({ to }) => to === req.session.user)
|
||||
|
|
|
|||
Loading…
Reference in a new issue