(obj)
| 40 | } |
| 41 | |
| 42 | async write(obj) { |
| 43 | let res = await got(this.url, { |
| 44 | method: 'POST', |
| 45 | headers: { |
| 46 | 'Content-Type': 'application/json', |
| 47 | }, |
| 48 | ...this.fetchOptions, |
| 49 | body: this.serialize(obj), |
| 50 | }) |
| 51 | if (res.statusCode !== 200) throw res.statusMessage |
| 52 | return res.body |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | export default CloudDBAdapter |
nothing calls this directly
no outgoing calls
no test coverage detected