Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): repair ownership UUID generation #19298

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/19298/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 1 changed file with 3 additions and 3 deletions.

x
0 of 1 viewed, 1 left
3 additions and 3 deletionsapps/server/src/serverOwnership.tsModified
View file
@@ -94,9 +94,9 @@
) {
const stateDir = NodePath.dirname(statePath);
const crypto = yield* Crypto.Crypto;
- const ownerId = yield* crypto.randomUUIDv4.pipe(
- Effect.mapError((cause) => new ServerOwnershipError({ stateDir, cause })),
- );
+ const ownerId = yield* crypto
+ .randomUUIDv4()
+ .pipe(Effect.mapError((cause) => new ServerOwnershipError({ stateDir, cause })));
yield* Effect.acquireRelease(
Effect.try({
try: () => {