projects
/
kraftakt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79cc9f9
)
fitbitDisconnectHandler(): Add call to c.DeleteToken().
author
Florian Forster
<ff@octo.it>
Wed, 31 Jan 2018 09:09:38 +0000
(10:09 +0100)
committer
Florian Forster
<ff@octo.it>
Wed, 31 Jan 2018 09:09:38 +0000
(10:09 +0100)
kraftakt.go
patch
|
blob
|
history
diff --git
a/kraftakt.go
b/kraftakt.go
index
4c69459
..
4700104
100644
(file)
--- a/
kraftakt.go
+++ b/
kraftakt.go
@@
-178,8
+178,11
@@
func fitbitDisconnectHandler(ctx context.Context, w http.ResponseWriter, r *http
}
if err := c.UnsubscribeAll(ctx); err != nil {
- log.Errorf(ctx, "UnsubscribeAll() = %v", err)
- return fmt.Errorf("deleting all subscriptions failed")
+ return fmt.Errorf("UnsubscribeAll() = %v", err)
+ }
+
+ if err := c.DeleteToken(ctx); err != nil {
+ return err
}
redirectURL := r.URL