Skip to content

Commit

Permalink
[FIX] Data Import not working (#12866)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hudell authored and sampaiodiego committed Dec 5, 2018
1 parent 4bb5d7d commit 38e0dd0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/rocketchat-importer/server/classes/ImporterBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ export class Base {
* @static
*/
static getBSONSize(item) {
const { BSON } = require('bson');
const bson = new BSON();
return bson.calculateObjectSize(item);
const { calculateObjectSize } = require('bson');

return calculateObjectSize(item);
}

/**
Expand Down

0 comments on commit 38e0dd0

Please sign in to comment.