Merge pull request #33 from amhsirak/develop
chore: add proper param types
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
import { default as axios } from "axios";
|
import { default as axios } from "axios";
|
||||||
|
|
||||||
// todo: proper typescript types for params
|
export const handleUploadCredentials = async (fileName: string, credentials: any, spreadsheetId: string, range: string): Promise<boolean> => {
|
||||||
export const handleUploadCredentials = async (fileName: any, credentials: any, spreadsheetId: any, range: any): Promise<boolean> => {
|
|
||||||
try {
|
try {
|
||||||
const response = await axios.post('http://localhost:8080/integration/upload-credentials', { fileName, credentials: JSON.parse(credentials), spreadsheetId, range });
|
const response = await axios.post('http://localhost:8080/integration/upload-credentials', { fileName, credentials: JSON.parse(credentials), spreadsheetId, range });
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
|
|||||||
Reference in New Issue
Block a user