Skip to content
New issue

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

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

Already on GitHub? # to your account

feat: required logged in to add question #447

Merged
merged 11 commits into from
Dec 20, 2022

Conversation

AdiPol1359
Copy link
Contributor

Fixes #445

@vercel
Copy link

vercel bot commented Dec 20, 2022

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

Name Status Preview Updated
devfaq ✅ Ready (Inspect) Visit Preview Dec 20, 2022 at 1:40PM (UTC)

@github-actions
Copy link

github-actions bot commented Dec 20, 2022

📦 Next.js Bundle Analysis

This analysis was generated by the next.js bundle analysis action 🤖

This PR introduced no changes to the javascript bundle 🙌

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Device URL
mobile https://devfaq-dha7nfczq-typeofweb.vercel.app

Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead

@@ -14,11 +14,13 @@ model Question {
categoryId String @map("_categoryId")
levelId String @map("_levelId")
statusId String @default("pending") @map("_statusId")
userId Int @map("_userId")
Copy link
Member

Choose a reason for hiding this comment

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

userId niewiele mówi – powinniśmy zmienić nazwę tego pola na createdById

createdAt DateTime @default(now()) @db.Timestamptz(6)
updatedAt DateTime @updatedAt() @db.Timestamptz(6)
QuestionCategory QuestionCategory @relation(fields: [categoryId], references: [id], onDelete: Cascade)
QuestionLevel QuestionLevel @relation(fields: [levelId], references: [id], onDelete: Cascade)
QuestionStatus QuestionStatus @relation(fields: [statusId], references: [id], onDelete: Cascade)
User User @relation(fields: [userId], references: [id])
Copy link
Member

Choose a reason for hiding this comment

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

Tak samo tutaj, chyba CreatedBy byłoby lepsze niż User

@@ -5,8 +5,9 @@ CREATE TABLE "Question" (
"acceptedAt" TIMESTAMPTZ(6),
Copy link
Member

Choose a reason for hiding this comment

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

Nie można modyfikować już istniejących migracji.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Device URL
mobile https://devfaq-qekx774eu-typeofweb.vercel.app

Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead

@typeofweb typeofweb merged commit 09bd468 into develop Dec 20, 2022
@typeofweb typeofweb deleted the required-logged-in-to-add-question branch December 20, 2022 13:45
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Block add question by unauthorized user
2 participants