mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-04 04:33:10 +00:00
Finished Adding Chacing
This commit is contained in:
parent
be70b88925
commit
e0ba56659f
2 changed files with 19 additions and 7 deletions
|
@ -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 };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue