Skip to content

Commit

Permalink
Merge pull request #22 from t3dotgg/theo/prisma-json-fix
Browse files Browse the repository at this point in the history
Attempt 2 at prisma json
  • Loading branch information
t3dotgg committed Apr 21, 2023
2 parents b145db9 + 3aa68a5 commit d521536
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
32 changes: 16 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"react-dom": "18.2.0",
"react-hot-toast": "^2.4.0",
"superjson": "1.9.1",
"zod": "^3.20.6"
"zod": "^3.21.4"
},
"devDependencies": {
"@types/eslint": "^8.21.1",
Expand All @@ -42,7 +42,7 @@
"postcss": "^8.4.14",
"prettier": "^2.8.1",
"prettier-plugin-tailwindcss": "^0.2.1",
"prisma": "^4.9.0",
"prisma": "^4.13.0",
"tailwindcss": "^3.2.0",
"typescript": "^4.9.5"
},
Expand Down
3 changes: 2 additions & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ datasource db {
}

generator client {
provider = "prisma-client-js"
provider = "prisma-client-js"
previewFeatures = ["jsonProtocol"]
}

model Post {
Expand Down
1 change: 0 additions & 1 deletion src/server/api/routers/posts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const addUserDataToPosts = async (posts: Post[]) => {
).map(filterUserForClient);

return posts.map((post) => {

const author = users.find((user) => user.id === post.authorId);

if (!author) {
Expand Down

1 comment on commit d521536

@vercel
Copy link

@vercel vercel bot commented on d521536 Apr 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.