Skip to content

Commit

Permalink
fixed return as status 500 even if its successful (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
vignesha22 authored Sep 11, 2023
1 parent bfe803e commit 67949a1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions backend/src/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ const routes: FastifyPluginAsync = async (server) => {

server.post(
"/whitelist",
whitelistResponseSchema,
async function (request, reply) {
try {
const body: any = request.body;
Expand Down Expand Up @@ -228,7 +227,6 @@ const routes: FastifyPluginAsync = async (server) => {

server.post(
"/checkWhitelist",
whitelistResponseSchema,
async function (request, reply) {
try {
const body: any = request.body;
Expand Down

0 comments on commit 67949a1

Please sign in to comment.