mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09:38:19 +08:00
9 lines
159 B
TypeScript
9 lines
159 B
TypeScript
import { GridFSBucket } from 'mongodb';
|
|
import { db } from './db';
|
|
|
|
const exp = new GridFSBucket(db);
|
|
|
|
global.Hydro.service.gridfs = exp;
|
|
|
|
export default exp;
|