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