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
@@ -15,6 +15,7 @@ import minimist from 'minimist'
import readline from 'node:readline'
import fs from 'node:fs'
import logger from '@overleaf/logger'
import { scriptRunner } from './lib/ScriptRunner.mjs'
const { ObjectId } = mongodb
const lastUpdated = new Date()
@@ -287,7 +288,7 @@ function findUniqueName(existingFilenames) {
try {
try {
await main()
await scriptRunner(main)
} finally {
logStats()
}