Skip to content

Commit 5718fad

Browse files
christianalfoniCompuIves
authored andcommitted
fix zeit signout (codesandbox#2946)
1 parent 822496c commit 5718fad

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/app/src/app/overmind/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export const signInZeitClicked: AsyncAction = async ({
157157
};
158158

159159
export const signOutZeitClicked: AsyncAction = async ({ state, effects }) => {
160-
await effects.http.delete(`/users/current_user/integrations/zeit`);
160+
await effects.api.signoutZeit();
161161
state.user.integrations.zeit = null;
162162
};
163163

packages/app/src/app/overmind/effects/api/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,9 @@ export default {
432432
signoutGithubIntegration(): Promise<void> {
433433
return api.delete(`/users/current_user/integrations/github`);
434434
},
435+
signoutZeit(): Promise<void> {
436+
return api.delete(`/users/current_user/integrations/zeit`);
437+
},
435438
preloadTemplates() {
436439
client.query({ query: LIST_TEMPLATES, variables: { showAll: true } });
437440
},

0 commit comments

Comments
 (0)