Fix cache tag

This commit is contained in:
MartinBraquet
2025-07-31 00:08:25 +02:00
parent 4d5ef7baad
commit dfb6abd460

View File

@@ -9,7 +9,7 @@ export async function GET(
const params = await context.params;
const { id } = params;
const cacheStrategy = { swr: 3600, ttl: 3600, tags: ["profiles/[id]"] };
const cacheStrategy = { swr: 3600, ttl: 3600, tags: ["profiles_id"] };
const user = await prisma.user.findUnique({
where: { id },
select: {