Formated Files

This commit is contained in:
Ahmad 2024-02-15 20:49:19 -05:00
parent d5631b309a
commit e768d9181f
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
138 changed files with 1829 additions and 1851 deletions

View file

@ -1,8 +1,8 @@
import { auth } from "@clerk/nextjs";
import { ENTITY_TYPE } from "@prisma/client";
import { NextResponse } from "next/server";
import { auth } from '@clerk/nextjs';
import { ENTITY_TYPE } from '@prisma/client';
import { NextResponse } from 'next/server';
import { db } from "@/lib/db";
import { db } from '@/lib/db';
export async function GET(
req: Request,
@ -12,7 +12,7 @@ export async function GET(
const { orgId, userId } = auth();
if (!orgId || !userId)
return new NextResponse(JSON.stringify({ error: "Unauthorized" }), {
return new NextResponse(JSON.stringify({ error: 'Unauthorized' }), {
status: 401,
});
@ -23,7 +23,7 @@ export async function GET(
entityType: ENTITY_TYPE.CARD,
},
orderBy: {
createdAt: "desc",
createdAt: 'desc',
},
take: 3,
});

View file

@ -1,7 +1,7 @@
import { auth } from "@clerk/nextjs";
import { NextResponse } from "next/server";
import { auth } from '@clerk/nextjs';
import { NextResponse } from 'next/server';
import { db } from "@/lib/db";
import { db } from '@/lib/db';
export async function GET(
req: Request,
@ -11,7 +11,7 @@ export async function GET(
const { orgId, userId } = auth();
if (!orgId || !userId)
return new NextResponse(JSON.stringify({ error: "Unauthorized" }), {
return new NextResponse(JSON.stringify({ error: 'Unauthorized' }), {
status: 401,
});