Merge pull request #1656 from sharelatex/cmg-reintroduce-beta-fix-path

Use path.join() in reintroduce beta script to pass linting

GitOrigin-RevId: 4936de04b389571e73de3ddcae8ee611634efcaf
This commit is contained in:
Simon Detheridge 2019-03-22 12:48:28 +00:00 committed by sharelatex
parent d2e053f456
commit db162cfe0a

View file

@ -1,11 +1,12 @@
const fs = require('fs')
const path = require('path')
const mongojs = require('../../app/js/infrastructure/mongojs')
const { db, ObjectId } = mongojs
const async = require('async')
console.log('Finding users for ids specified')
const text = fs.readFileSync(__dirname + '/beta-users.txt')
const text = fs.readFileSync(path.join(__dirname, 'beta-users.txt'))
const textByLine = text
.toString()
.split('\n')