Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align all templates to use publicProcedure for getLatest method #1968

Closed
wants to merge 1 commit into from

Conversation

Guria
Copy link
Contributor

@Guria Guria commented Aug 19, 2024

Fixes #1961

Fix the issue with errors on a fresh T3 app install by changing getLatest to use publicProcedure instead of protectedProcedure.

  • cli/template/extras/src/server/api/routers/post/with-auth.ts
    • Change getLatest to use publicProcedure instead of protectedProcedure.
  • cli/template/extras/src/server/api/routers/post/with-auth-prisma.ts
    • Change getLatest to use publicProcedure instead of protectedProcedure.

For more details, open the Copilot Workspace session.

Fixes t3-oss#1961

Fix the issue with errors on a fresh T3 app install by changing `getLatest` to use `publicProcedure` instead of `protectedProcedure`.

* **cli/template/extras/src/server/api/routers/post/with-auth.ts**
  - Change `getLatest` to use `publicProcedure` instead of `protectedProcedure`.
* **cli/template/extras/src/server/api/routers/post/with-auth-prisma.ts**
  - Change `getLatest` to use `publicProcedure` instead of `protectedProcedure`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/t3-oss/create-t3-app/issues/1961?shareId=XXXX-XXXX-XXXX-XXXX).
Copy link

changeset-bot bot commented Aug 19, 2024

⚠️ No Changeset found

Latest commit: cbf719d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Aug 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
create-t3-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 19, 2024 5:16pm

Copy link

vercel bot commented Aug 19, 2024

@Guria is attempting to deploy a commit to the t3-oss Team on Vercel.

A member of the Team first needs to authorize it.

@Guria
Copy link
Contributor Author

Guria commented Aug 19, 2024

Wrong solution, closing

@Guria Guria closed this Aug 19, 2024
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.

bug: Errors with clean T3 install
1 participant