Merge pull request #24790 from overleaf/ls-use-script-runner

Update some scripts to use Script Runner

GitOrigin-RevId: aaa11f94dcfd328c158bb02d1b9fb2adfb1bb146
This commit is contained in:
Liangjun Song
2025-05-23 08:05:23 +00:00
committed by Copybot
parent d0010217cd
commit 2f87db9c0d
62 changed files with 225 additions and 112 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ import ProjectEntityMongoUpdateHandler from '../app/src/Features/Project/Project
import ProjectLocator from '../app/src/Features/Project/ProjectLocator.js'
import RedisWrapper from '@overleaf/redis-wrapper'
import Settings from '@overleaf/settings'
import { scriptRunner } from './lib/ScriptRunner.mjs'
const opts = parseArgs()
const redis = RedisWrapper.createClient(Settings.redis.web)
@@ -155,7 +156,7 @@ async function deleteDocFromRedis(projectId, docId) {
}
try {
await main()
await scriptRunner(main)
process.exit(0)
} catch (error) {
console.error(error)