Purge unneeded require

This commit is contained in:
蔡仲明 (Romulus Urakagi Tsai) 2020-05-14 17:36:57 +08:00 committed by GitHub
parent 0735981366
commit b80396f627
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1045,7 +1045,6 @@ Migrations.add('add-sort-field-to-boards', () => {
import { MongoInternals } from 'meteor/mongo';
Migrations.add('change-attachment-library', () => {
const http = require('http');
const fs = require('fs');
CFSAttachments.find().forEach(file => {
const bucket = new MongoInternals.NpmModule.GridFSBucket(MongoInternals.defaultRemoteCollectionDriver().mongo.db, {bucketName: 'cfs_gridfs.attachments'});