Skip to content

Commit

Permalink
fix: validator import
Browse files Browse the repository at this point in the history
  • Loading branch information
Atticus64 committed Aug 11, 2024
1 parent c09290c commit 1461062
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/routers/auth.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Hono } from "hono";
import { login, logout, signup } from "$/controllers/auth.ts";
import { z } from "zod";
import { validator } from "hono/validator";
import { validator } from "jsr:@hono/hono/validator";

const router_auth = new Hono();

Expand Down
2 changes: 1 addition & 1 deletion src/routers/book.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Hono } from "hono";
import { validator } from "hono/validator";
import { validator } from "jsr:@hono/hono/validator";
import { getBookInfo } from "$/controllers/book.ts";
import { invalidBookError } from "$/validators/book.ts";
import { existBook, getNameByAbbreviation, isAbbreviation } from "$/utils/book.ts";
Expand Down
2 changes: 1 addition & 1 deletion src/routers/notes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Hono } from "hono";
import { validator } from "hono/validator";
import { validator } from "jsr:@hono/hono/validator";
import { z } from "zod";
import {
createNote,
Expand Down
2 changes: 1 addition & 1 deletion src/routers/read.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Hono } from "hono";
import { validator } from "hono/validator";
import { validator } from "jsr:@hono/hono/validator";
import {
getChapterVersion,
getEndpoits,
Expand Down

1 comment on commit 1461062

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on 1461062 Aug 11, 2024

Choose a reason for hiding this comment

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

Failed to deploy:

Relative import path "hono/cookie" not prefixed with / or ./ or ../ and not in import map from "file:///src/src/controllers/auth.ts"

Please sign in to comment.