diff --git a/api/app/lib/controllers/patrolRecord/patrolRecord.js b/api/app/lib/controllers/patrolRecord/patrolRecord.js index d4c447e..baefeb2 100644 --- a/api/app/lib/controllers/patrolRecord/patrolRecord.js +++ b/api/app/lib/controllers/patrolRecord/patrolRecord.js @@ -40,7 +40,7 @@ async function findPatrolRecord(ctx, next) { }); } rslt = pointId.split(',').map(i => { - return a.filter(t => t.pointId === i).sort((a, b) => b.id - a.id)[0] || null + return a.filter(t => t.pointId == i).sort((a, b) => b.id - a.id)[0] || null }) } } else { @@ -69,7 +69,7 @@ async function findPatrolRecord(ctx, next) { } rslt = pointId.split(',').map(i => { - return a.filter(t => t.pointId === i).sort((a, b) => b.id - a.id)[0] || null + return a.filter(t => t.pointId == i).sort((a, b) => b.id - a.id)[0] || null }) } }