()
| 61 | } |
| 62 | |
| 63 | static async get() { |
| 64 | const existingConfig = await this.query().limit(1).first(); |
| 65 | |
| 66 | if (!existingConfig) { |
| 67 | return await this.query().insertAndFetch({}); |
| 68 | } |
| 69 | |
| 70 | return existingConfig; |
| 71 | } |
| 72 | |
| 73 | static async update(config) { |
| 74 | const configEntry = await this.get(); |
no outgoing calls
no test coverage detected