Skip to content

Commit 961235b

Browse files
authored
Merge pull request #623 from trycompai/mariano/comp-policy-control-fix
chore: dont return early
2 parents e544314 + 7ec7a9e commit 961235b

File tree

1 file changed

+0
-11
lines changed
  • apps/app/src/app/[locale]/(app)/(dashboard)/[orgId]/policies/[policyId]/data

1 file changed

+0
-11
lines changed

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)