Skip to content

Commit

Permalink
Allow query string parameter to skip validation
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromtcosta committed Nov 30, 2021
1 parent 31bab69 commit 923f980
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/services/validateNft.ts
Expand Up @@ -143,8 +143,13 @@ export const handleValidateNft = (pool: Pool) => async (req: Request, res: Respo
});
}

if (req.query.skipValidation) {
return res.status(204)
.send();
}

sendNftForValidation(lambda, fingerprint, metadata.image);

return res.status(204)
return res.status(202)
.send();
};

0 comments on commit 923f980

Please sign in to comment.