refactor(server/utils): create gridfs bucket for draft contents

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2023-10-10 22:05:26 -04:00
parent dd74c8417a
commit 90b0256008
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

View File

@ -0,0 +1,9 @@
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",
});
}