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,13 +1,13 @@
import { auth } from "@clerk/nextjs";
import { auth } from '@clerk/nextjs';
import { db } from "@/lib/db";
import { MAX_FREE_BOARDS } from "@/constants/boards";
import { db } from '@/lib/db';
import { MAX_FREE_BOARDS } from '@/constants/boards';
export const incrementAvailableCount = async () => {
const { orgId } = auth();
if (!orgId) {
throw new Error("Unauthorized");
throw new Error('Unauthorized');
}
const orgLimit = await db.orgLimit.findUnique({
@ -30,7 +30,7 @@ export const decreaseAvailableCount = async () => {
const { orgId } = auth();
if (!orgId) {
throw new Error("Unauthorized");
throw new Error('Unauthorized');
}
const orgLimit = await db.orgLimit.findUnique({
@ -53,7 +53,7 @@ export const hasAvailableCount = async () => {
const { orgId } = auth();
if (!orgId) {
throw new Error("Unauthorized");
throw new Error('Unauthorized');
}
const orgLimit = await db.orgLimit.findUnique({