Skip to content

Commit

Permalink
fix zeit signout (codesandbox#2946)
Browse files Browse the repository at this point in the history
  • Loading branch information
christianalfoni authored and CompuIves committed Oct 31, 2019
1 parent 822496c commit 5718fad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app/src/app/overmind/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 157,7 @@ export const signInZeitClicked: AsyncAction = async ({
};

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

Expand Down
3 changes: 3 additions & 0 deletions packages/app/src/app/overmind/effects/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 432,9 @@ export default {
signoutGithubIntegration(): Promise<void> {
return api.delete(`/users/current_user/integrations/github`);
},
signoutZeit(): Promise<void> {
return api.delete(`/users/current_user/integrations/zeit`);
},
preloadTemplates() {
client.query({ query: LIST_TEMPLATES, variables: { showAll: true } });
},
Expand Down

0 comments on commit 5718fad

Please sign in to comment.