fix(approval): enforce session expiry for every operation handle
This commit is contained in:
1 parent
fac81b08e8
commit
b69b78fc30
5 files changed
+69
-38
No files matched your search
@@ -88,9 +88,9 @@ export async function handleAiProLogs(ctx: AiProExecutionContext): Promise<AiPro
|
||||
|
||||
let runRecord: ApprovalRunRecord | null = null;
|
||||
if (runHandle) {
|
||||
runRecord = repo.getRunByHandle(runHandle);
|
||||
runRecord = repo.getRunByHandle(runHandle, undefined, { allowExpired: true });
|
||||
} else if (targetSn) {
|
||||
const maybeRun = repo.getRunByHandle(targetSn);
|
||||
const maybeRun = repo.getRunByHandle(targetSn, undefined, { allowExpired: true });
|
||||
if (maybeRun?.shortId && maybeRun.shortId.toUpperCase() === targetSn.toUpperCase()) {
|
||||
runRecord = maybeRun;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user