( slug: string )
| 104 | } |
| 105 | |
| 106 | export async function getDocument( |
| 107 | slug: string |
| 108 | ): Promise<JSONDocument | undefined> { |
| 109 | const doc = await DOCUMENTS.get(slug); |
| 110 | |
| 111 | if (!doc) return; |
| 112 | |
| 113 | return JSON.parse(doc); |
| 114 | } |
| 115 | |
| 116 | export async function updateDocument( |
| 117 | slug: string, |
no outgoing calls
no test coverage detected