mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Merge pull request #28199 from overleaf/td-ar-script-runner-lint
Add ESLint rule to require Script Runner for scripts in web GitOrigin-RevId: 94d5dac806e4c5480b7ed95cf8484a2d13ac8294
This commit is contained in:
@@ -48,7 +48,7 @@ function parseArgs() {
|
||||
}
|
||||
|
||||
function usage() {
|
||||
console.log(`Usage: find_dangling_comments.mjs [OPTS]
|
||||
console.log(`Usage: check_docs.mjs [OPTS]
|
||||
|
||||
Options:
|
||||
|
||||
@@ -205,7 +205,7 @@ async function findDanglingThreadIds(projectId, docs) {
|
||||
return []
|
||||
}
|
||||
|
||||
const rooms = await db.rooms.find(
|
||||
const rooms = db.rooms.find(
|
||||
{ project_id: new ObjectId(projectId), thread_id: { $exists: true } },
|
||||
{ readPreference: READ_PREFERENCE_SECONDARY }
|
||||
)
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
/* eslint-disable @overleaf/require-script-runner */
|
||||
// This *is* ScriptRunner.
|
||||
|
||||
import { ScriptLog } from '../../app/src/models/ScriptLog.mjs'
|
||||
import Settings from '@overleaf/settings'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user