Skip to content

Commit

Permalink
fix: handler type
Browse files Browse the repository at this point in the history
  • Loading branch information
dromzeh committed Mar 17, 2024
1 parent e0d9e02 commit 4ec3163
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/v2/routes/asset/get-asset-likes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
selectAssetTagSchema,
selectAssetLikesSchema,
} from "@/v2/db/schema"
import { Handler } from "../handler"
import { AppHandler } from "../handler"

const allAssetLikesSchema = z.object({
success: z.literal(true),
Expand Down Expand Up @@ -44,7 +44,7 @@ const allAssetLikesRoute = createRoute({
},
})

export const GetAssetLikesRoute = (handler: Handler) => {
export const GetAssetLikesRoute = (handler: AppHandler) => {
handler.openapi(allAssetLikesRoute, async (ctx) => {
const authSessionManager = new AuthSessionManager(ctx)
const { user } = await authSessionManager.validateSession()
Expand Down

0 comments on commit 4ec3163

Please sign in to comment.