mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-25 09:41:04 +01:00
fix(recovery): preserve repeated blocked escalation
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
dcf326c546
commit
526fcbb266
1 file changed
+4
-1
@@ -3251,7 +3251,10 @@ export function recoveryService(db: Db, deps: { enqueueWakeup: RecoveryWakeup })
|
||||
.where(eq(issues.id, input.issueId))
|
||||
.for("update")
|
||||
.then((rows) => rows[0] ?? null);
|
||||
if (!current || current.status !== input.expectedStatus) return null;
|
||||
if (
|
||||
!current ||
|
||||
(current.status !== input.expectedStatus && current.status !== "blocked")
|
||||
) return null;
|
||||
|
||||
return issuesSvc.update(input.issueId, {
|
||||
status: "blocked",
|
||||
|
||||
Reference in new issue
Block a user