mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(api): duplicate reply on error in /daily-coding-challenge-completed (#60999)
This commit is contained in:
committed by
GitHub
parent
d5a930803c
commit
722131407b
@@ -291,6 +291,7 @@ export const challengeRoutes: FastifyPluginCallbackTypebox = (
|
||||
type: 'error',
|
||||
message: 'That does not appear to be a valid challenge submission.'
|
||||
});
|
||||
} else {
|
||||
fastify.errorHandler(error, req, reply);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user