(method: (storage: Storage) => Promise<T>)
| 128 | }; |
| 129 | |
| 130 | async function executeStorageMethod<T>(method: (storage: Storage) => Promise<T>): Promise<T> { |
| 131 | const storage = await getStorageSingleton(); |
| 132 | return await method(storage); |
| 133 | } |
| 134 | |
| 135 | function parseRequestArgs(req: Request, requiredKeys: string[]): Record<string, any> { |
| 136 | if (!util.isPlainObject(req.body)) { |