Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
fix(tag): correct the type of query parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Nov 13, 2022
1 parent 314afec commit e1b349a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/api/tag/list.get.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { FieldRules } from "!/types/validation"
import type { RoleQueryParameters } from "$/types/query"
import type { TagQueryParameters } from "$/types/query"
import type { Request, Response } from "!/types/dependent"

import Policy from "!/bases/policy"
Expand Down Expand Up @@ -27,7 +27,7 @@ export default class extends QueryController {
}

async handle(request: Request, unusedResponse: Response): Promise<ListResponse> {
const constraints = { ...request.query } as RoleQueryParameters<number>
const constraints = { ...request.query } as TagQueryParameters<number>

const manager = new Manager(request)
const tags = await manager.list(constraints)
Expand Down

0 comments on commit e1b349a

Please sign in to comment.