(key: string)
| 737 | |
| 738 | private getDb(): Promise<Low<TmpAdminDB>> { |
| 739 | if (!this.dbPromise) { |
| 740 | const filePath = path.join(createDirectoryInAssets(pluginName), "jobs.json"); |
| 741 | this.dbPromise = JSONFilePreset<TmpAdminDB>(filePath, { jobs: {} }); |
| 742 | } |
| 743 | return this.dbPromise; |
| 744 | } |
| 745 | |
| 746 | private async mutateDb(mutator: (data: TmpAdminDB) => void): Promise<void> { |
no test coverage detected