(_storeId)
| 274 | Effect.mapError((cause) => new EventJournal.EventJournalError({ cause, method: "destroy" })) |
| 275 | ), |
| 276 | withLock(_storeId) { |
| 277 | return (effect) => |
| 278 | sql.withTransaction(effect).pipe( |
| 279 | Effect.catchIf(SqlError.isSqlError, Effect.die) |
| 280 | ) |
| 281 | } |
| 282 | }) |
| 283 | }) |
| 284 |