From 1f528b39921660b326570eeb4155882a2bd3577e Mon Sep 17 00:00:00 2001 From: Mohammed Imran Date: Tue, 19 Jul 2022 11:04:31 +0530 Subject: [PATCH] temporary fix for #https://github.com/M0hammedImran/fresh-todo/issues/1#issue-1308697863 --- import_map.json | 2 +- routes/api/todos/[id].ts | 2 +- utils/db.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/import_map.json b/import_map.json index 4bbec93..6b3d48f 100644 --- a/import_map.json +++ b/import_map.json @@ -2,7 +2,7 @@ "imports": { "$fresh/": "https://deno.land/x/fresh@1.0.0/", "$zod/": "https://deno.land/x/zod@v3.17.3/", - "$denodb/": "https://deno.land/x/denodb@v1.0.40/", + "$denodb/": "https://raw.githubusercontent.com/joeldesante/denodb/master/", "preact": "https://esm.sh/preact@10.8.1", "preact/": "https://esm.sh/preact@10.8.1/", "preact-render-to-string": "https://esm.sh/preact-render-to-string@5.2.0?deps=preact@10.8.1" diff --git a/routes/api/todos/[id].ts b/routes/api/todos/[id].ts index 03f48cc..6a29f62 100644 --- a/routes/api/todos/[id].ts +++ b/routes/api/todos/[id].ts @@ -1,5 +1,5 @@ import { HandlerContext } from '$fresh/server.ts'; -import { Todo } from '../../../Models/Todo.ts'; +import { Todo } from '../../../models/Todo.ts'; import { db } from '../../../utils/db.ts'; import * as zod from 'https://deno.land/x/zod@v3.17.3/mod.ts'; diff --git a/utils/db.ts b/utils/db.ts index 6e707ab..dc92107 100644 --- a/utils/db.ts +++ b/utils/db.ts @@ -1,5 +1,5 @@ -import { Database, PostgresConnector } from 'https://deno.land/x/denodb@v1.0.40/mod.ts'; -import { Todo } from "../Models/Todo.ts"; +import { Database, PostgresConnector } from '$denodb/mod.ts'; +import { Todo } from "../models/Todo.ts"; const connection = new PostgresConnector({ host: 'localhost',