@effect-agent/storage-sqlite 0.1.0-beta.35 → 0.1.0-beta.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/sqlite-ledger.ts +5 -4
package/dist/index.mjs
CHANGED
|
@@ -2064,7 +2064,7 @@ const makeServices = Effect.fn("SqliteSubmissionLedger.makeServices")(function*
|
|
|
2064
2064
|
const heads = yield* decodeSubmissionRows(operation, validated.conversationId, headRows);
|
|
2065
2065
|
if (heads.length === 0) return Option.none();
|
|
2066
2066
|
const head = heads[0];
|
|
2067
|
-
if (head.state === "joining" || head.state === "joined" || head.state === "suspended" || head.state === "unknown") return Option.none();
|
|
2067
|
+
if (head.state === "joining" || head.state === "joined" || head.state === "suspended" || head.state === "unknown" && Option.isNone(yield* readAbortIntent(operation, head.submission_id))) return Option.none();
|
|
2068
2068
|
const now = yield* currentInstant;
|
|
2069
2069
|
const ownership = yield* readOwnership(operation, head.submission_id);
|
|
2070
2070
|
if (Option.isSome(ownership)) {
|