Skip to content

Commit 4c7774b

Browse files
authored
Merge pull request #624 from trycompai/main
[comp] Production Deploy
2 parents a5021d5 + 961235b commit 4c7774b

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

  • apps/app/src/app/[locale]/(app)/(dashboard)/[orgId]/policies/[policyId]/data

apps/app/src/app/[locale]/(app)/(dashboard)/[orgId]/policies/[policyId]/data/index.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,6 @@ export const getArtifactsCreatedFromPolicy = cache(async (policyId: string) => {
1818
return { artifacts: [], mappedControls: [], allControls: [] };
1919
}
2020

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-
3221
const mappedControls = await db.control.findMany({
3322
where: {
3423
organizationId,

0 commit comments

Comments
 (0)