()
| 168 | } |
| 169 | |
| 170 | isOutdated() { |
| 171 | const { lastUpdate, config } = this |
| 172 | const { interval = 15 } = config |
| 173 | |
| 174 | if (lastUpdate && Date.now() - lastUpdate > ms(`${interval}m`)) { |
| 175 | return true |
| 176 | } |
| 177 | |
| 178 | return false |
| 179 | } |
| 180 | |
| 181 | // This is a method returning the cache |
| 182 | // because the cache would otherwise be loaded |
nothing calls this directly
no outgoing calls
no test coverage detected