Fix typos
This commit is contained in:
1 parent
1c8376dc24
commit
0791c7e5c5
4 files changed
+11
-5
No files matched your search
@@ -15,7 +15,7 @@ export const createPageSpeed = createAsyncThunk(
|
|||||||
const { authToken, monitor } = data;
|
const { authToken, monitor } = data;
|
||||||
const res = await networkService.createMonitor({
|
const res = await networkService.createMonitor({
|
||||||
authToken: authToken,
|
authToken: authToken,
|
||||||
moniotr: monitor,
|
monitor: monitor,
|
||||||
});
|
});
|
||||||
return res.data;
|
return res.data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -36,7 +36,10 @@ export const getPagespeedMonitorById = createAsyncThunk(
|
|||||||
async (data, thunkApi) => {
|
async (data, thunkApi) => {
|
||||||
try {
|
try {
|
||||||
const { authToken, monitorId } = data;
|
const { authToken, monitorId } = data;
|
||||||
const res = await networkService.getMonitorByid({ authToken, monitorId });
|
const res = await networkService.getMonitorById({
|
||||||
|
authToken: authToken,
|
||||||
|
monitorId: monitorId,
|
||||||
|
});
|
||||||
return res.data;
|
return res.data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error.response && error.response.data) {
|
if (error.response && error.response.data) {
|
||||||
|
|||||||
@@ -36,7 +36,10 @@ export const getUptimeMonitorById = createAsyncThunk(
|
|||||||
async (data, thunkApi) => {
|
async (data, thunkApi) => {
|
||||||
try {
|
try {
|
||||||
const { authToken, monitorId } = data;
|
const { authToken, monitorId } = data;
|
||||||
const res = await networkService.getMonitorByid({ authToken, monitorId });
|
const res = await networkService.getMonitorById({
|
||||||
|
authToken: authToken,
|
||||||
|
monitorId: monitorId,
|
||||||
|
});
|
||||||
return res.data;
|
return res.data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error.response && error.response.data) {
|
if (error.response && error.response.data) {
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ const PaginationTable = ({ monitorId, dateRange }) => {
|
|||||||
try {
|
try {
|
||||||
const res = await networkService.getChecksByMonitor({
|
const res = await networkService.getChecksByMonitor({
|
||||||
authToken: authToken,
|
authToken: authToken,
|
||||||
moniotrId: monitorId,
|
monitoirId: monitorId,
|
||||||
sortOrder: "desc",
|
sortOrder: "desc",
|
||||||
limit: null,
|
limit: null,
|
||||||
dateRange: dateRange,
|
dateRange: dateRange,
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ class NetworkService {
|
|||||||
* @returns {Promise<AxiosResponse>} The response from the axios GET request.
|
* @returns {Promise<AxiosResponse>} The response from the axios GET request.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
async getMonitorByid(config) {
|
async getMonitorById(config) {
|
||||||
return this.axiosInstance.get(`/monitors/${config.monitorId}`, {
|
return this.axiosInstance.get(`/monitors/${config.monitorId}`, {
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${config.authToken}`,
|
Authorization: `Bearer ${config.authToken}`,
|
||||||
|
|||||||
Reference in new issue
Block a user