next/lib/server/storyHelpers/getBucket.ts

10 lines
225 B
TypeScript
Raw Normal View History

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",
});
}