mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-07 14:20:31 -06:00
fix: remove error prone unused function in services (#918)
This commit is contained in:
@@ -197,29 +197,3 @@ export const deleteProfile = async (userId: string): Promise<void> => {
|
||||
throw error;
|
||||
}
|
||||
};
|
||||
export async function getUserIdFromEnvironment(environmentId: string) {
|
||||
const environment = await prisma.environment.findUnique({
|
||||
where: { id: environmentId },
|
||||
select: {
|
||||
product: {
|
||||
select: {
|
||||
team: {
|
||||
select: {
|
||||
memberships: {
|
||||
select: {
|
||||
user: {
|
||||
select: {
|
||||
id: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
return environment?.product.team.memberships[0].user.id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user