♻️ refactor

This commit is contained in:
Fred KISSIE
2026-03-04 17:41:55 +01:00
parent 42c9bda939
commit f42c013f33
5 changed files with 25 additions and 60 deletions

View File

@@ -118,7 +118,10 @@ async function query(params: z.infer<typeof getResourcePolicySchema>) {
.where(eq(rolePolicies.resourcePolicyId, res.resourcePolicyId));
const policyEmailWhiteList = await db
.select()
.select({
whiteListId: resourcePolicyWhiteList.whitelistId,
email: resourcePolicyWhiteList.email
})
.from(resourcePolicyWhiteList)
.where(
eq(resourcePolicyWhiteList.resourcePolicyId, res.resourcePolicyId)