Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubkottnauer committed Jul 1, 2024
1 parent a4d2565 commit f3b30ca
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 160 deletions.
26 changes: 0 additions & 26 deletions app/layout.tsx

This file was deleted.

129 changes: 0 additions & 129 deletions app/settings-v2/page.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions pages/api/harvest/[...path].ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
}

if (cookies.HARVEST_ACCESS_TOKEN && cookies.HARVEST_ACCOUNT_ID) {
console.log("got cookies");
const resp = await fetch(`${HARVEST_API_BASE_URL}/${req.url}`, {
method: req.method,
headers: {
Expand All @@ -32,13 +31,9 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
: JSON.stringify(req.body),
});

console.log("got response");
if (resp.headers.get("content-type")?.startsWith("application/json")) {
console.log("parsing data");
const data = await resp.json();
console.log("parsed data data");
if (req.url === "/users/me" && data) {
console.log("got data!");
const user = data as User;
Sentry.captureMessage(`Loaded page`, {
user: {
Expand Down

0 comments on commit f3b30ca

Please sign in to comment.