refactor(sync): make session events schema-first (#24019)

This commit is contained in:
Kit Langton
2026-04-23 12:43:08 -04:00
committed by GitHub
parent 353532b1c1
commit c50d65b4d6
9 changed files with 141 additions and 81 deletions

View File

@@ -181,7 +181,7 @@ export const layer = Layer.effect(
yield* watch(Session.Event.Updated, (evt) =>
Effect.gen(function* () {
const info = yield* session.get(evt.properties.sessionID)
const info = evt.properties.info
yield* sync(info.id, [{ type: "session", data: info }])
}),
)