use the right key for the access token
This commit is contained in:
2
main.go
2
main.go
@@ -57,7 +57,7 @@ func fetchItems(db *nomad.DB, markOnly bool) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
client := woodstock.NewClient(config.Get("pnut_id"), config.Get("pnut_secret"))
|
client := woodstock.NewClient(config.Get("pnut_id"), config.Get("pnut_secret"))
|
||||||
client.SetAccessToken(config.Get(""))
|
client.SetAccessToken(config.Get("pnut_auth_token"))
|
||||||
|
|
||||||
for _, item := range items {
|
for _, item := range items {
|
||||||
p := nomad.NewPost(item)
|
p := nomad.NewPost(item)
|
||||||
|
|||||||
Reference in New Issue
Block a user