Fix session ID not being provided in some network calls

This commit is contained in:
Gregory Schier committed 2019-05-02 11:25:30 -04:00
1 parent 43f424c48c
commit 4e6f044b99
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -190,7 +190,7 @@ export async function listTeams() {
}
export async function endTrial() {
await fetch.put('/api/billing/end-trial', getCurrentSessionId());
await fetch.put('/api/billing/end-trial', null, getCurrentSessionId());
}
// ~~~~~~~~~~~~~~~~ //
@@ -27,7 +27,7 @@ export async function syncPush(body) {
}
export async function syncResetData() {
return fetch.post('/auth/reset', session.getCurrentSessionId());
return fetch.post('/auth/reset', null, session.getCurrentSessionId());
}
export async function syncFixDupes(resourceGroupIds) {
@@ -37,6 +37,7 @@ export async function syncFixDupes(resourceGroupIds) {
export async function unshareWithAllTeams(resourceGroupId) {
return fetch.put(
`/api/resource_groups/${resourceGroupId}/unshare`,
null,
session.getCurrentSessionId(),
);
}