mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-25 01:09:23 -05:00
chore: simplify getPersonByUserId by removing legacy person support (#1649)
This commit is contained in:
@@ -305,7 +305,9 @@ export const getPersonByUserId = async (environmentId: string, userId: string):
|
||||
select: selectPerson,
|
||||
});
|
||||
|
||||
if (personWithUserId) {
|
||||
return personWithUserId ? transformPrismaPerson(personWithUserId) : null;
|
||||
|
||||
/* if (personWithUserId) {
|
||||
return transformPrismaPerson(personWithUserId);
|
||||
}
|
||||
|
||||
@@ -350,9 +352,9 @@ export const getPersonByUserId = async (environmentId: string, userId: string):
|
||||
id: personWithUserIdAttribute.id,
|
||||
environmentId,
|
||||
userId,
|
||||
});
|
||||
});
|
||||
|
||||
return transformPrismaPerson(personWithUserIdAttribute);
|
||||
return transformPrismaPerson(personWithUserIdAttribute); */
|
||||
},
|
||||
[`getPersonByUserId-${environmentId}-${userId}`],
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user