Skip to content

Commit b3fa80c

Browse files
committed
feat: use url without entity IDs for use-paper page
1 parent e8fd3cc commit b3fa80c

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/controllers/update/secure.update.filter.controller.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ export const get = async (req: Request, res: Response, next: NextFunction) => {
88
await getFilterPage(req, res, next, config.SECURE_UPDATE_FILTER_PAGE, config.UPDATE_CONTINUE_WITH_SAVED_FILING_URL);
99
};
1010

11-
export const post = (req: Request, res: Response, next: NextFunction) => {
11+
export const post = async (req: Request, res: Response, next: NextFunction) => {
1212
const nextPageUrl = isActiveFeature(config.FEATURE_FLAG_ENABLE_REDIS_REMOVAL)
1313
? config.UPDATE_INTERRUPT_CARD_WITH_PARAMS_URL : config.UPDATE_INTERRUPT_CARD_URL;
14-
const usePaperUrl = isActiveFeature(config.FEATURE_FLAG_ENABLE_REDIS_REMOVAL)
15-
? config.UPDATE_USE_PAPER_WITH_PARAMS_URL : config.UPDATE_USE_PAPER_URL;
16-
postFilterPage(req, res, next, usePaperUrl, nextPageUrl);
14+
await postFilterPage(req, res, next, config.UPDATE_USE_PAPER_URL, nextPageUrl);
1715
};

src/utils/secure.filter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const postFilterPage = async (
6969
let nextPageUrl: string = "";
7070

7171
if (isSecureRegister === "1") {
72-
nextPageUrl = getNextPageUrl(appData, isSecureRegisterYesUrl, isRemove, isRedisRemovalFlag);
72+
nextPageUrl = isSecureRegisterYesUrl;
7373
}
7474

7575
if (isSecureRegister === "0") {

0 commit comments

Comments
 (0)