Skip to content

Commit

Permalink
must authorize!
Browse files Browse the repository at this point in the history
  • Loading branch information
mgwalker committed Nov 20, 2024
1 parent b2b9205 commit 41f453f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/tock.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ const { getSlackUsers } = require("./slack");
const getFromTock = async (url) =>
cache(`tock fetch: ${url}`, 10, async () => {
const absoluteURL = new URL(url, process.env.TOCK_API);
return fetch(absoluteURL).then((r) => r.json());
return fetch(absoluteURL, {
headers: { Authorization: `Token ${process.env.TOCK_TOKEN}` },
}).then((r) => r.json());
});

/**
Expand Down

0 comments on commit 41f453f

Please sign in to comment.