Skip to content

Commit

Permalink
Proper Authorization header's value for FIMS history
Browse files Browse the repository at this point in the history
(cherry picked from commit 626c5ee)
  • Loading branch information
Vangaorth committed Nov 21, 2024
1 parent ed08b8e commit 36c3145
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function* handleExportFimsHistorySaga(
action: ActionType<typeof fimsHistoryExport.request>
) {
const exportHistoryRequest = exportHistory({
Bearer: bearerToken
Bearer: `Bearer ${bearerToken}`
});

try {
Expand Down
4 changes: 2 additions & 2 deletions ts/features/fims/history/saga/handleGetFimsHistorySaga.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function* handleGetFimsHistorySaga(
);

const getHistoryRequest = getFimsHistory({
Bearer: bearerToken,
Bearer: `Bearer ${bearerToken}`,
"Accept-Language": preferredLanguage,
page: action.payload.continuationToken
});
Expand All @@ -42,7 +42,7 @@ export function* handleGetFimsHistorySaga(
trackFailureIfNeeded(resultAction);
yield* put(resultAction);
} catch (e) {
const reason = JSON.stringify(e);
const reason = `${e} ${JSON.stringify(e)}`;
trackHistoryFailure(reason);
yield* put(fimsHistoryGet.failure(reason));
}
Expand Down

0 comments on commit 36c3145

Please sign in to comment.