Skip to content

Commit

Permalink
Update packages/http-server/src/request-handlers/create-exchange.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Jiyoon Koo <[email protected]>
  • Loading branch information
diehuxx and jiyoontbd authored Feb 16, 2024
1 parent 449f55b commit f5bfd05
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export async function createExchange(req: Request, res: Response, options: Creat

// TODO: check message.from against allowlist

const rfqExists = !! await exchangesApi.getRfq({ exchangeId: rfq.id })
const rfqExists = !! await exchangesApi.getRfq({ exchangeId: rfq.exchangeId })
if (rfqExists) {
const errorResponse: ErrorDetail = { detail: `rfq ${rfq.id} already exists`}
return res.status(409).json({ errors: [errorResponse] })
Expand Down

0 comments on commit f5bfd05

Please sign in to comment.