Skip to content

Commit

Permalink
Small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterRoll committed Oct 15, 2024
1 parent 9abbcad commit 9a98d91
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/app/(dashboard)/tourmaline/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { currentUser } from "@clerk/nextjs";
import { currentUser } from "@clerk/nextjs/server";
import { redirect } from "next/navigation";

export default async function TourmalineLayout({ children }: { children: React.ReactNode }) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/admin/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { currentUser } from "@clerk/nextjs";
import { currentUser } from "@clerk/nextjs/server";
import { redirect } from "next/navigation";

export default async function DashboardLayout({ children }: { children: React.ReactNode }) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function Search({ placeholder }: { placeholder: string }) {
const params = new URLSearchParams(searchParams);

//replace the last word with the clicked on suggestion
let splitSearch = params.get("q")!.match(/\w+:?/g)!; //match on any word (\w+) with an optional trailing colon (:?). ! to assert existence since we know they both exist, otherwise you couldn't click on the div
let splitSearch = params.get("q")!.match(/\w+:?/g)!; //match on any word (\w+) with an optional trailing colon (:?). ! to assert existence since we know they both exist, otherwise the div wouldn't exist
const lastLen = splitSearch[splitSearch.length-1].length;
const newVal = params.get("q")!.trim().slice(0, -lastLen) + (e.target as HTMLElement).innerText + " ";
params.set("q", newVal); //TS can't detect the type of e.target properly, so we assert it inline
Expand Down
5 changes: 2 additions & 3 deletions server/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ generator py {
}

datasource db {
provider = "postgresql"
url = env("POSTGRES_PRISMA_URL")
directUrl = env("POSTGRES_URL_NON_POOLING")
provider = "postgresql"
url = env("POSTGRES_PRISMA_URL")
}

model Feature {
Expand Down

0 comments on commit 9a98d91

Please sign in to comment.