1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-15 08:00:05 +00:00

chore(refactor): add more tests

This commit is contained in:
Krishna Acondy
2021-07-13 08:12:15 +01:00
parent 4257ec78aa
commit b9f368193d
4 changed files with 147 additions and 7 deletions

View File

@@ -8,12 +8,6 @@ export async function uploadTables(
accessToken?: string
) {
const uploadedFiles = []
const headers: any = {
'Content-Type': 'application/json'
}
if (accessToken) {
headers.Authorization = `Bearer ${accessToken}`
}
for (const tableName in data) {
const csv = convertToCSV(data[tableName])