Skip to content

Commit

Permalink
fix response for poem random
Browse files Browse the repository at this point in the history
  • Loading branch information
carafelix committed Jun 28, 2024
1 parent ab544fe commit 473c502
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/endpoints/poems/poemaRand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { XataClient } from '../../db/xata'
import { PoemResponseSchema, PoemSchema } from '../../db/zodSchemas'
import { drizzle } from 'drizzle-orm/xata-http'
import { Bindings } from 'types'
import { OpenAPIRoute } from 'chanfana'
import { OpenAPIRoute, contentJson } from 'chanfana'
import type { Context } from 'hono'
import { z } from 'zod'
import { lte, eq } from 'drizzle-orm'
Expand All @@ -22,7 +22,7 @@ export class PoemRandom extends OpenAPIRoute {
responses: {
'200': {
description: 'Returns a Poem exact match or a list of fuzzy Poems',
schema: PoemResponseSchema
...contentJson(PoemResponseSchema)
},
},
}
Expand Down

0 comments on commit 473c502

Please sign in to comment.