in src/fileManager.ts [50:64]
async function getGuFile(id: string): Promise<FileJSON | null> {
console.log(`Fetching ${id} from dynamodb`)
const result = await dynamo.get({
TableName: DYNAMODB_TABLE,
Key: {
"key": `file:${id}`
}
})
if (result.Item !== undefined) {
return result.Item['file'] as FileJSON
} else {
return null
}
}