mirror of
https://github.com/formbricks/formbricks.git
synced 2026-02-18 01:00:40 -06:00
fix: cache not getting revalidated on person update (#1704)
This commit is contained in:
@@ -225,6 +225,7 @@ export const deletePerson = async (personId: string): Promise<TPerson | null> =>
|
||||
|
||||
personCache.revalidate({
|
||||
id: transformedPerson.id,
|
||||
userId: transformedPerson.userId,
|
||||
environmentId: transformedPerson.environmentId,
|
||||
});
|
||||
|
||||
@@ -288,6 +289,7 @@ export const updatePerson = async (personId: string, personInput: TPersonUpdateI
|
||||
|
||||
personCache.revalidate({
|
||||
id: personId,
|
||||
userId: person.userId,
|
||||
environmentId: person.environmentId,
|
||||
});
|
||||
|
||||
@@ -377,6 +379,9 @@ export const getPersonByUserId = async (environmentId: string, userId: string):
|
||||
}
|
||||
)();
|
||||
|
||||
/**
|
||||
* @deprecated This function is deprecated and only used in legacy endpoints. Use updatePerson instead.
|
||||
*/
|
||||
export const updatePersonAttribute = async (
|
||||
personId: string,
|
||||
attributeClassId: string,
|
||||
|
||||
Reference in New Issue
Block a user