Skip to content

fix(policies): remove stray brace breaking nest build#2614

Merged
Marfuen merged 1 commit intomainfrom
mariano/policy-approver-authorization
Apr 20, 2026
Merged

fix(policies): remove stray brace breaking nest build#2614
Marfuen merged 1 commit intomainfrom
mariano/policy-approver-authorization

Conversation

@Marfuen
Copy link
Copy Markdown
Contributor

@Marfuen Marfuen commented Apr 20, 2026

Summary

  • Commit 91c6deb added the approver-id authorization check to approveChanges but left an extra } after the inner if block, prematurely closing the outer !policy.pendingVersionId guard and the method itself.
  • Every subsequent method (denyChanges, getMemberId, hexToRgb, downloadAllPoliciesPdf, isUniqueConstraintError, …) ended up at class-statement scope, cascading into 131 tsc errors and breaking the production Docker build (bunx nest build).
  • This PR deletes the single stray brace. No behaviour change.

Test plan

  • bunx nest build locally: 131 errors → 1 pre-existing unrelated better-auth type error on auth.server.ts:430
  • CI build passes and ECR push succeeds

Follow-up

  • denyChanges has the same stale-state cleanup pattern as approveChanges and still needs the matching dto.approverId === policy.approverId guard to fully address the original cubic P2. Will do that in a separate PR.

🤖 Generated with Claude Code


Summary by cubic

Remove an extra closing brace in PoliciesService.approveChanges that pushed subsequent methods to class scope, causing 131 TypeScript errors and failing bunx nest build. Restores the build; no behavior change.

Written for commit fde65bf. Summary will update on new commits.

Commit 91c6deb added the approver-id authorization check to
approveChanges but left an extra closing brace after the if block,
which prematurely closed the !policy.pendingVersionId guard and the
method, putting every subsequent method at class-statement scope.
That cascaded into 131 tsc errors and broke the prod Docker build.

Delete the stray brace. Nothing else changes.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
comp-framework-editor Ready Ready Preview, Comment Apr 20, 2026 7:47pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
app Skipped Skipped Apr 20, 2026 7:47pm
portal Skipped Skipped Apr 20, 2026 7:47pm

Request Review

@Marfuen Marfuen merged commit 3e9d55a into main Apr 20, 2026
10 checks passed
@Marfuen Marfuen deleted the mariano/policy-approver-authorization branch April 20, 2026 19:48
@claudfuen
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.26.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants