()
| 570 | } |
| 571 | |
| 572 | static async updateTimestamp() { |
| 573 | const db = await SqliteDb.get(); |
| 574 | await db.run( |
| 575 | `UPDATE ${IndexLock.getLockTableName()} SET timestamp = ? where locked = ?`, |
| 576 | Date.now(), |
| 577 | true, |
| 578 | ); |
| 579 | } |
| 580 | |
| 581 | static async unlock() { |
| 582 | const db = await SqliteDb.get(); |
no test coverage detected