Finished Adding Chacing

This commit is contained in:
Ahmad 2025-01-19 01:36:59 -05:00
parent be70b88925
commit e0ba56659f
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
2 changed files with 19 additions and 7 deletions

View file

@ -1,7 +1,7 @@
'use server';
import { auth } from '@clerk/nextjs/server';
import { revalidatePath } from 'next/cache';
import { revalidatePath, revalidateTag } from 'next/cache';
import { ACTION, ENTITY_TYPE } from '@prisma/client';
import { db } from '@/lib/db';
@ -74,6 +74,7 @@ const handler = async (data: InputType): Promise<ReturnType> => {
};
}
revalidateTag(`board-${id}`);
revalidatePath(`/board/${id}`);
return { data: board };
};