chore: pre-chore

This commit is contained in:
Leifer Mendez
2023-02-04 17:59:45 +01:00
11 changed files with 239 additions and 155 deletions

View File

@@ -10,7 +10,10 @@ class MockDatabase {
constructor() {}
getPrevByNumber = (from) => {
const history = this.listHistory.slice().reverse()
const history = this.listHistory
.slice()
.reverse()
.filter((i) => !!i.keyword)
return history.find((a) => a.from === from)
}