mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-04 04:33:10 +00:00
Formated Files
This commit is contained in:
parent
d5631b309a
commit
e768d9181f
138 changed files with 1829 additions and 1851 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue