(row: typeof SessionMessageTable.$inferSelect)
| 194 | const decodeMessage = Schema.decodeUnknownEffect(SessionMessage.Message) |
| 195 | const isDurableSessionEvent = Schema.is(SessionEvent.Durable) |
| 196 | const decode = (row: typeof SessionMessageTable.$inferSelect) => |
| 197 | decodeMessage({ ...row.data, id: row.id, type: row.type }).pipe( |
| 198 | Effect.mapError( |
| 199 | () => |
| 200 | new MessageDecodeError({ |
| 201 | sessionID: SessionSchema.ID.make(row.session_id), |
| 202 | messageID: SessionMessage.ID.make(row.id), |
| 203 | }), |
| 204 | ), |
| 205 | ) |
| 206 | |
| 207 | const result = Service.of({ |
| 208 | create: Effect.fn("V2Session.create")(function* (input) { |
no test coverage detected