Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Feb 23, 2024
1 parent 99953cb commit d627412
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
2 changes: 0 additions & 2 deletions apps/dashboard/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
### Dashboard

###
21 changes: 21 additions & 0 deletions apps/dashboard/src/app/api/debug/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { getTransactions, transformTransactions } from "@midday/gocardless";
import { download } from "@midday/supabase/storage";
import { NextResponse } from "next/server";

export const preferredRegion = "fra1";
export const runtime = "edge";

export async function GET(req, res) {
const requestUrl = new URL(req.url);
const id = requestUrl.searchParams.get("id");

const { transactions } = await getTransactions({
accountId: id,
});

const formatted = transformTransactions(transactions.booked, {
teamId: 123,
});

return NextResponse.json(formatted);
}
2 changes: 1 addition & 1 deletion packages/ui/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Config } from "tailwindcss";

export default {
darkMode: ["class", '[data-mode="dark"]'],
darkMode: ["class"],
content: ["./src/**/*.{ts,tsx}"],
theme: {
extend: {
Expand Down

0 comments on commit d627412

Please sign in to comment.