mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 01:36:08 +08:00
7 lines
166 B
JavaScript
7 lines
166 B
JavaScript
const { GridFSBucket } = require('mongodb');
|
|
const db = require('./db');
|
|
|
|
if (!db.s) db.s = {};
|
|
|
|
global.Hydro.service.gridfs = module.exports = new GridFSBucket(db);
|