mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-10 22:07:19 +00:00
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:
parent
d2e053f456
commit
db162cfe0a
1 changed files with 2 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Reference in a new issue