We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e544314 + 7ec7a9e commit 961235bCopy full SHA for 961235b
apps/app/src/app/[locale]/(app)/(dashboard)/[orgId]/policies/[policyId]/data/index.ts
@@ -18,17 +18,6 @@ export const getArtifactsCreatedFromPolicy = cache(async (policyId: string) => {
18
return { artifacts: [], mappedControls: [], allControls: [] };
19
}
20
21
- const artifacts = await db.artifact.findMany({
22
- where: {
23
- organizationId,
24
- policyId,
25
- },
26
- });
27
-
28
- if (!artifacts.length) {
29
- return { artifacts: [], mappedControls: [], allControls: [] };
30
- }
31
32
const mappedControls = await db.control.findMany({
33
where: {
34
organizationId,
0 commit comments