chore: fix eslint and make nuxt typecheck happpy
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
import type { InternalApi } from "nitropack/types";
|
||||||
|
|
||||||
|
export type Link = InternalApi["/api/links"]["get"][number];
|
||||||
|
|
||||||
const apiErrorSchema = z.object({
|
const apiErrorSchema = z.object({
|
||||||
data: z.object({
|
data: z.object({
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export default defineEventHandler(async (event) => {
|
|||||||
|
|
||||||
const path = getRequestURL(event).pathname;
|
const path = getRequestURL(event).pathname;
|
||||||
|
|
||||||
let link = await db.query.links.findFirst({
|
const link = await db.query.links.findFirst({
|
||||||
where: eq(tables.links.path, path),
|
where: eq(tables.links.path, path),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
import type { InternalApi } from "nitropack/types";
|
|
||||||
|
|
||||||
export type Link = InternalApi["/api/links"]["get"][number];
|
|
||||||
Reference in New Issue
Block a user