Skip to content

Commit

Permalink
Merge pull request #3106 from catchpoint/master
Browse files Browse the repository at this point in the history
Promote to Prod
  • Loading branch information
claud-io authored Sep 4, 2024
2 parents f24d52c + 3c2966e commit 359d6e1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion www/archive.inc
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ function RestoreArchive($id)
{
$isSaaSTest = (stripos($id, '_saas_') !== false);
$saas_capture_prefix = GetSetting("cp_saas_capture_prefix");
$isInstantTest = (stripos($id, '_instant_') !== false);

$ret = false;
if (TestArchiveExpired($id)) {
Expand Down Expand Up @@ -309,7 +310,7 @@ function RestoreArchive($id)
}
}
//saas tests do not specifiy capture server in the URL, so we'll hardcode it
if ($isSaaSTest) {
if ($isSaaSTest || $isInstantTest) {
$capture_server = GetSetting("cp_capture_$saas_capture_prefix");
$capture_salt = GetSetting("cp_capture_salt_$saas_capture_prefix");
}
Expand Down Expand Up @@ -417,6 +418,9 @@ function RestoreArchive($id)
if ($deleteZip) {
@unlink($zipfile);
}
if ($isInstantTest) {
ProcessUploadedTest($id);
}
}
} else {
$ret = true;
Expand Down

0 comments on commit 359d6e1

Please sign in to comment.