migrate Effect.fn in apps/server/src/telemetry/Identify.ts
Co-authored-by: codex <[email protected]>
This commit is contained in:
1 parent
d8aa2f85df
commit
8aa8f981c5
1 file changed
+2
-2
@@ -60,11 +60,11 @@ const upsertAnonymousId = Effect.gen(function* () {
|
||||
|
||||
const anonymousId = yield* fileSystem.readFileString(anonymousIdPath).pipe(
|
||||
Effect.catch(() =>
|
||||
Effect.gen(function* () {
|
||||
Effect.fn("upsertAnonymousId.createAnonymousId")(function* () {
|
||||
const randomId = yield* Random.nextUUIDv4;
|
||||
yield* fileSystem.writeFileString(anonymousIdPath, randomId);
|
||||
return randomId;
|
||||
}),
|
||||
})(),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user