mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 10:10:08 +02: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:
committed by
sharelatex
parent
d2e053f456
commit
db162cfe0a
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user