@@ -29,7 +29,7 @@ module.exports = app => {
*/
async getLatestHistory(tid) {
const his = await this.db.select(this.tableName, {
- where: { tid },
+ where: { tid, valid: 1 },
orders: [['in_time', 'desc']],
limit: 1, offset: 0,
});