10 lines
216 B
TypeScript
10 lines
216 B
TypeScript
|
import { GridFSBucket } from "mongodb";
|
||
|
import mongoose from "mongoose";
|
||
|
|
||
|
export default function () {
|
||
|
// @ts-ignore SHUT UP MEG
|
||
|
return new GridFSBucket(mongoose.connection.db, {
|
||
|
bucketName: "draft_text",
|
||
|
});
|
||
|
}
|