Spaces:
Paused
Paused
Download db.js from veltrixcode/GCX: direct link, hf CLI and curl.
- Browser
- Download file 180 Bytes
-
https://huggingface.co/spaces/veltrixcode/GCX/resolve/main/db.js
- Command line
-
hf download hf://spaces/veltrixcode/GCX/db.js
-
curl -L -o db.js https://huggingface.co/spaces/veltrixcode/GCX/resolve/main/db.js
180 Bytes
| const { connectToMongo } = require('./mongo'); | |
| // Returns the MongoDB database instance | |
| async function getDb() { | |
| return await connectToMongo(); | |
| } | |
| module.exports = { | |
| getDb | |
| }; |