diff --git a/emailnotif.js b/emailnotif.js index f7029d6..532fd80 100644 --- a/emailnotif.js +++ b/emailnotif.js @@ -107,7 +107,7 @@ function notifyOnSigned(idxjustification, signerNik) { select t.nik, e.fullname from tbl_justificationttd t join dbssotcel.tbl_employee e on e.nik = t.nik - where t.idxjustification = '${idxjustification}' and t.category = 'APR' and t.issigned = 0 and t.isdeleted = 0 + where t.idxjustification = '${idxjustification}' and t.issigned = 0 and t.isdeleted = 0 order by t._idx asc limit 1 `; db.query(qryNext, [], function(err3, rows3) {