(key)
| 22 | } |
| 23 | |
| 24 | const get = async (key) => { |
| 25 | const res = await dbAction('lastStates', 'findOne', { |
| 26 | _id: key |
| 27 | }) |
| 28 | .catch(e => { |
| 29 | log.error(e) |
| 30 | log.error('last state get error') |
| 31 | }) |
| 32 | return res ? res.value : null |
| 33 | } |
| 34 | |
| 35 | const clear = (key) => { |
| 36 | const q = key |
no test coverage detected