From f7d08d11b62c49321ae606dd123fcb0f9520706a Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 7 Oct 2022 14:13:45 -0500 Subject: [PATCH] Change imports to match --- routes/login.tsx | 2 +- routes/note.tsx | 2 +- routes/note/[id].tsx | 4 ++-- routes/note/create.tsx | 2 +- routes/register.tsx | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/routes/login.tsx b/routes/login.tsx index 742603a..ff71f0a 100644 --- a/routes/login.tsx +++ b/routes/login.tsx @@ -1,7 +1,7 @@ import { HandlerContext, Handlers, PageProps } from "$fresh/server.ts"; import { compare } from "https://deno.land/x/bcrypt@v0.4.1/mod.ts"; import { Page } from "@/components/Page.tsx"; -import { query } from "../db.ts"; +import { query } from "@/db/mod.ts"; type UserID = string; diff --git a/routes/note.tsx b/routes/note.tsx index 43e9b76..4534033 100644 --- a/routes/note.tsx +++ b/routes/note.tsx @@ -1,5 +1,5 @@ import { Handlers, PageProps } from "$fresh/server.ts"; -import { query } from "@/db.ts"; +import { query } from "@/db/mod.ts"; import { Page } from "@/components/Page.tsx"; interface Note { diff --git a/routes/note/[id].tsx b/routes/note/[id].tsx index 6cf1189..c5d4374 100644 --- a/routes/note/[id].tsx +++ b/routes/note/[id].tsx @@ -1,6 +1,6 @@ import { Handlers, PageProps } from "$fresh/server.ts"; -import { query } from "../../db.ts"; -import { Page } from "../../components/Page.tsx"; +import { query } from "@/db/mod.ts"; +import { Page } from "@/components/Page.tsx"; interface Note { id: string; diff --git a/routes/note/create.tsx b/routes/note/create.tsx index cd76d74..dae53f9 100644 --- a/routes/note/create.tsx +++ b/routes/note/create.tsx @@ -1,5 +1,5 @@ import { Handlers, PageProps } from "$fresh/server.ts"; -import { query } from "@/db.ts"; +import { query } from "@/db/mod.ts"; import { Page } from "@/components/Page.tsx"; type NoteID = string; diff --git a/routes/register.tsx b/routes/register.tsx index 688a725..1bb88ee 100644 --- a/routes/register.tsx +++ b/routes/register.tsx @@ -1,6 +1,6 @@ import { Handlers, PageProps } from "$fresh/server.ts"; -import { Page } from "../components/Page.tsx"; -import { PostgresError, query } from "../db.ts"; +import { Page } from "@/components/Page.tsx"; +import { PostgresError, query } from "@/db/mod.ts"; import { hash } from "https://deno.land/x/bcrypt@v0.4.1/mod.ts"; type UserID = string;