Skip to content

Commit 74ae98a

Browse files
authored
Merge pull request #2889 from bcgov/feature/fix-testing-bug
Update request for auto test
2 parents b673d83 + 2dc7de7 commit 74ae98a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
import axios from "axios";
22

33
export const getSubmissionHistory = (applicationCode = "") => {
4+
// Temporary fix for issue introduced
5+
const token = localStorage.getItem("jwt");
6+
47
if (applicationCode) {
58
return axios.get("/filingpackages", {
69
params: { parentApplication: applicationCode },
10+
headers: {
11+
Authorization: `Bearer ${token}`,
12+
},
713
});
814
}
9-
return axios.get("/filingpackages");
15+
return axios.get("/filingpackages", {
16+
headers: {
17+
Authorization: `Bearer ${token}`,
18+
},
19+
});
1020
};

0 commit comments

Comments
 (0)