1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-13 11:17:26 +02:00
unleash.unleash/src
Gastón Fournier 331de07e39
fix: double token initialization (#9783)
## About the changes
Initially at Unleash we started using `process.nextTick` inside
constructors to delay initialization of services.
Later we stared using a pattern where we instantiate services multiple
times.
The problem is the first pattern implies we have singleton services,
while the second pattern breaks the singleton.

There are reasons for both patterns, but we've decided that
`process.nextTick` inside constructors is not something we want to keep
as it creates side effects from creating objects. Instead this PR
proposes a more explicit approach.

Fixes #9775
2025-04-17 09:22:35 +02:00
..
lib fix: double token initialization (#9783) 2025-04-17 09:22:35 +02:00
mailtemplates feat: productivity email action text (#8966) 2024-12-12 12:00:08 +01:00
migrations feat: environment required approvals migration (#9612) 2025-03-25 15:33:58 +01:00
test fix: double token initialization (#9783) 2025-04-17 09:22:35 +02:00
migrator.ts chore: Create test db from template (#9265) 2025-02-11 13:01:43 +01:00
server-dev.ts chore: cleanup reminder flag (#9769) 2025-04-16 11:25:50 +02:00
server.ts