refactor(sync): make session events schema-first (#24019)
This commit is contained in:
@@ -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 }])
|
||||
}),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user