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