Skip to content

Commit

Permalink
fix: remove stg-lite rollback for non-ggs flow (#1055)
Browse files Browse the repository at this point in the history
  • Loading branch information
harishv7 authored Dec 13, 2023
1 parent c1a2935 commit f8969f0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/middleware/routeHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,18 +214,13 @@ export const attachRollbackRouteHandlerWrapper = (routeHandler: any) => async (
treeSha: stgTreeSha,
} = await getCommitAndTreeSha(siteName, accessToken, STAGING_BRANCH)

const {
currentCommitSha: currentStgLiteCommitSha,
} = await getCommitAndTreeSha(siteName, accessToken, STAGING_LITE_BRANCH)

const githubSessionData = new GithubSessionData({
currentCommitSha: currentStgCommitSha,
treeSha: stgTreeSha,
})
res.locals.githubSessionData = githubSessionData

originalStagingCommitSha = currentStgCommitSha
originalStagingLiteCommitSha = currentStgLiteCommitSha
} catch (err) {
await unlock(siteName)
logger.error(
Expand Down

0 comments on commit f8969f0

Please sign in to comment.