authorgravatar for me@t3.ggTheo Browne <me@t3.gg> 2026-10-14 01:03:58-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-10-14 01:03:58-07:00
log94ca023bf488ac2d13e3233a7e2382ac67bda66d
treea156394642a2e5ea1bc382a1433b2b0f3be514fe
parentbac35a2ffcf90bb9fac7f63582bda9c549fd75ff
signature Signed by PGP key B5690EEEBB952194

fix(server): repair ownership UUID generation (#19298)


1 files changed, 3 insertions(+), 3 deletions(-)

apps/server/src/serverOwnership.ts+3-3
......@@ -94,9 +94,9 @@ export const acquireServerOwnership = Effect.fn("acquireServerOwnership")(functi
9494) {
9595 const stateDir = NodePath.dirname(statePath);
9696 const crypto = yield* Crypto.Crypto;
97 const ownerId = yield* crypto.randomUUIDv4.pipe(
98 Effect.mapError((cause) => new ServerOwnershipError({ stateDir, cause })),
99 );
97 const ownerId = yield* crypto
98 .randomUUIDv4()
99 .pipe(Effect.mapError((cause) => new ServerOwnershipError({ stateDir, cause })));
100100 yield* Effect.acquireRelease(
101101 Effect.try({
102102 try: () => {