Skip to content

Commit

Permalink
Revert "adding authorization to file upload"
Browse files Browse the repository at this point in the history
This reverts commit 7f8bbc9.
  • Loading branch information
sribbleinc committed Feb 12, 2022
1 parent f156e10 commit 25ade88
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions web/src/components/map/utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import axios from "axios";
import { getAccessToken } from "../auth/utils";

import { apiUrlCollectionById, apiUrlCollections } from "../../api.util";

/**
Expand Down Expand Up @@ -85,9 +85,6 @@ export const getPollutantsByCollectionId = async (
cancelTokenSource
) => {
const options = {
headers: {
Authorization: `JWT ${getAccessToken()}`
},
cancelToken: cancelTokenSource.token,
};
try {
Expand Down Expand Up @@ -192,9 +189,6 @@ export const getCollectionsOnDate = async (
cancelTokenSource
) => {
const options = {
headers: {
Authorization: `JWT ${getAccessToken()}`
},
params: {
start_date: formattedDate,
},
Expand Down Expand Up @@ -226,9 +220,6 @@ export const getCollectionsOnDate = async (
*/
export const getCollectionFileByLink = async (fileLink, cancelTokenSource) => {
const options = {
headers: {
Authorization: `JWT ${getAccessToken()}`
},
cancelToken: cancelTokenSource.token,
};
try {
Expand Down

0 comments on commit 25ade88

Please sign in to comment.