in frontend/app/getbuilds.ts [75:86]
async function getLatestMainlineBuild(deploymentInfo: DeployedImageInfo) {
try {
const mainBuild = await getLatestBuild(deploymentInfo, "main");
return mainBuild;
} catch (err) {
if (err == "Server returned 404") {
return getLatestBuild(deploymentInfo, "master");
} else {
throw err;
}
}
}