Skip to content

Commit

Permalink
fix: schema validation
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavkparti committed Aug 25, 2023
1 parent 7dbd62e commit 55d04d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/handlers/transferHandler/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ const {
} = require('./schemas');

const transferPost = async (req, res) => {
await transferPostSchema.validateAsync(req.body, { abortEarly: false });
const validatedData = await transferPostSchema.validateAsync(req.body, { abortEarly: false });
const transferService = new TransferService();

const { result, status } = await transferService.initiateTransfer(
req.body,
validatedData,
req.wallet_id,
);

Expand Down

0 comments on commit 55d04d8

Please sign in to comment.