diff --git a/apps/portal/prisma/migrations/20221014105030_add_question_content_search/migration.sql b/apps/portal/prisma/migrations/20221014105030_add_question_content_search/migration.sql index 2aed7085..6b37b4ee 100644 --- a/apps/portal/prisma/migrations/20221014105030_add_question_content_search/migration.sql +++ b/apps/portal/prisma/migrations/20221014105030_add_question_content_search/migration.sql @@ -1,8 +1,8 @@ -- AlterTable ALTER TABLE "QuestionsQuestion" ADD COLUMN "contentSearch" TSVECTOR GENERATED ALWAYS AS - to_tsvector('english', coalesce(content, '')) + (to_tsvector('english', coalesce(content, ''))) STORED; -- CreateIndex -CREATE INDEX "QuestionsQuestion_contentSearch_idx" ON "QuestionsQuestion" USING GIN("textSearch"); \ No newline at end of file +CREATE INDEX "QuestionsQuestion_contentSearch_idx" ON "QuestionsQuestion" USING GIN("contentSearch"); \ No newline at end of file diff --git a/apps/portal/src/components/questions/card/question/BaseQuestionCard.tsx b/apps/portal/src/components/questions/card/question/BaseQuestionCard.tsx index 0ccd23e4..88024b3e 100644 --- a/apps/portal/src/components/questions/card/question/BaseQuestionCard.tsx +++ b/apps/portal/src/components/questions/card/question/BaseQuestionCard.tsx @@ -157,7 +157,7 @@ export default function BaseQuestionCard({ onUpvote={handleUpvote} /> )} -