Skip to content

Commit

Permalink
Update secret-scanning-service.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHougaard committed Jan 15, 2025
1 parent 6324c6d commit 108a540
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ export const secretScanningServiceFactory = ({
const getRisksByOrg = async ({ actor, orgId, actorId, actorAuthMethod, actorOrgId, filter }: TGetOrgRisksDTO) => {
const { permission } = await permissionService.getOrgPermission(actor, actorId, orgId, actorAuthMethod, actorOrgId);
ForbiddenError.from(permission).throwUnlessCan(OrgPermissionActions.Read, OrgPermissionSubjects.SecretScanning);
// const risks = await secretScanningDAL.find({ orgId }, { sort: [["createdAt", "desc"]] });

const results = await secretScanningDAL.findByOrgId(orgId, filter);

Expand Down

0 comments on commit 108a540

Please sign in to comment.