fix: remove error prone unused function in services (#918)

This commit is contained in:
Rotimi Best
2023-10-03 12:55:23 +01:00
committed by GitHub
parent 2cf316b620
commit 9fbefa42dd

View File

@@ -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;
}