10 lines
225 B
TypeScript
10 lines
225 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: "story_text",
|
|
});
|
|
}
|