Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
leximpact-socio-fiscal-ui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leximpact
Simulateur socio-fiscal
leximpact-socio-fiscal-ui
Commits
94851773
Commit
94851773
authored
8 months ago
by
Emmanuel Raviart
Browse files
Options
Downloads
Patches
Plain Diff
Avoid importing from script
parent
791fffe7
Branches
Branches containing commit
Tags
0.0.876
Tags containing commit
No related merge requests found
Pipeline
#18044
failed
8 months ago
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/scripts/clear_simulations_cache.ts
+3
-3
3 additions, 3 deletions
src/scripts/clear_simulations_cache.ts
with
3 additions
and
3 deletions
src/scripts/clear_simulations_cache.ts
+
3
−
3
View file @
94851773
import
"
dotenv/config
"
import
path
from
"
path
"
import
path
from
"
path
"
import
fs
from
"
fs-extra
"
import
fs
from
"
fs-extra
"
import
serverConfig
from
"
$lib/server/server_config
"
const
simulationsBudgetDir
=
process
.
env
.
SIMULATIONS_BUDGET_DIR
as
string
const
simulationsTestCasesDir
=
process
.
env
.
SIMULATIONS_TEST_CASES_DIR
as
string
const
{
simulationsBudgetDir
,
simulationsTestCasesDir
}
=
serverConfig
// Remove private budget simulations from index.
// Remove private budget simulations from index.
const
indexFilePath
=
path
.
join
(
simulationsBudgetDir
,
"
index.json
"
)
const
indexFilePath
=
path
.
join
(
simulationsBudgetDir
,
"
index.json
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment