fix: getAttributeClassByName cache returns wrong entries (#1072)

This commit is contained in:
Matti Nannt
2023-10-10 13:52:47 +02:00
committed by GitHub
parent 66408fdccc
commit cb6c1aade6

View File

@@ -98,7 +98,7 @@ export const getAttributeClassByNameCached = async (environmentId: string, name:
async () => {
return await getAttributeClassByName(environmentId, name);
},
getAttributeClassesCacheKey(environmentId),
[`environments-${environmentId}-attributeClass-${name}`],
{
tags: getAttributeClassesCacheKey(environmentId),
revalidate: SERVICES_REVALIDATION_INTERVAL,