MCPcopy Create free account
hub / github.com/Maccoder3/MAC-MD / write

Method write

lib/cloudDBAdapter.js:42–53  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

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
56export default CloudDBAdapter

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected