Skip to content

Commit

Permalink
fix: better logging, reduced race conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
stravo1 committed Apr 24, 2024
1 parent 1b4a17b commit 62f28a8
Show file tree
Hide file tree
Showing 4 changed files with 150 additions and 120 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ data.json
# Exclude macOS Finder (System Explorer) View States
.DS_Store

pnpm*
pnpm*
*.zip
4 changes: 0 additions & 4 deletions actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const uploadFile = async (
method: "POST",
headers: {
Authorization: `Bearer ${accessToken}`,
"Content-Type": "application/json",
},

body: JSON.stringify({
Expand Down Expand Up @@ -140,7 +139,6 @@ const uploadFolder = async (accessToken, foldername, rootId = null) => {
method: "POST",
headers: {
Authorization: `Bearer ${accessToken}`,
"Content-Type": "application/json",
},

body: JSON.stringify({
Expand Down Expand Up @@ -169,7 +167,6 @@ const getFilesList = async (accessToken, vault) => {
method: "GET",
headers: {
Authorization: `Bearer ${accessToken}`,
Accept: "application/json",
},
});
let files = response.json.files;
Expand All @@ -186,7 +183,6 @@ const getFilesList = async (accessToken, vault) => {
method: "GET",
headers: {
Authorization: `Bearer ${accessToken}`,
Accept: "application/json",
},
});
files = files.concat(response.json.files);
Expand Down
Loading

0 comments on commit 62f28a8

Please sign in to comment.