Transaction/Punch type time in, time out, ot in, ot out not included in data returned
I did get the real time logs and attendance but there's no transaction/punch type included? please help.
up!
I noticed the decoder found in util.js doesn't have the in or out status, also the realtime logs decoder:
` module.exports.decodeRecordData40 = (recordData)=>{ const record = { userSn: recordData.readUIntLE(0, 2), deviceUserId: recordData .slice(2, 2+9) .toString('ascii') .split('\0') .shift(), recordTime: parseTimeToDate(recordData.readUInt32LE(27)), } return record }
module.exports.decodeRecordRealTimeLog18 = (recordData)=>{ const userId = recordData.readUIntLE(8,1) const attTime = parseHexToTime(recordData.subarray(12,18)) return {userId , attTime} } `
Please do add the check in/out, this is really needed for this package. thanks!