Skip to content

fix: TS7031 in posts route map — unblocks main typecheck and Railway deploy - #227

Merged
AutomatosAI merged 1 commit into
mainfrom
fix/posts-map-implicit-any
Aug 6, 2026
Merged

fix: TS7031 in posts route map — unblocks main typecheck and Railway deploy#227
AutomatosAI merged 1 commit into
mainfrom
fix/posts-map-implicit-any

Conversation

@AutomatosAI

Copy link
Copy Markdown
Owner

One-line follow-up to #226, which merged with a typecheck error: prisma is untyped, so the destructured .map() callback param in the posts list GET had no contextual type — tsc --noEmit failed (TS7031), and with ignoreBuildErrors: false the Railway deploy of 410efdc FAILED (13:29Z). Prod is still on the pre-#226 image, so the lekkerweed blog fix is not live until this lands.

Annotates the param as any, matching the repo's existing idiom (initialPosts: any[], catch (e: any)). No runtime change.

Test plan: CI Typecheck · Lint · Build goes green; Railway deploy of the merge commit succeeds; lekkerweed admin retries a blog create.

…ailway deploy

prisma is untyped here, so the destructured map callback param had no
contextual type and tsc --noEmit failed (ignoreBuildErrors=false, so the
Railway build of 410efdc FAILED and prod stayed on the previous image).
Annotate the param as any, matching the repo's existing idiom.
@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@AutomatosAI, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 52 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 0f0f8ec2-b53a-4dbe-9576-0067d1862ffb

📥 Commits

Reviewing files that changed from the base of the PR and between 410efdc and c8ada15.

📒 Files selected for processing (1)
  • nextjs_space/app/api/tenant-admin/posts/route.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@AutomatosAI
AutomatosAI merged commit 389d342 into main Aug 6, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants