Skip to content

Commit

Permalink
feat: temporarily disable post-start stats processing in PropsRouter
Browse files Browse the repository at this point in the history
- Updated the '/props/stats/post-start' endpoint to disable the feature for now.
- Added a response indicating that the feature is currently disabled, along with a status of 200.
- Removed the original try-catch block for error handling in this endpoint.
  • Loading branch information
fearandesire committed Dec 14, 2024
1 parent 6cc3511 commit dece810
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/utils/api/routes/props/props-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@ PropsRouter.post('/props/daily', async (ctx) => {
});

PropsRouter.post('/props/stats/post-start', async (ctx) => {
try {
// ? Disabled for now
ctx.status = 200;
ctx.body = {
message:
'Received request to process Props post-start stats (Disabled Feature)',
};
return;
/* try {
WinstonLogger.info({
message: 'Received request to process Props post-start stats',
});
Expand All @@ -29,7 +36,7 @@ PropsRouter.post('/props/stats/post-start', async (ctx) => {
} catch (error) {
ctx.status = 400;
ctx.body = { message: (error as Error).message };
}
} */
});

export default PropsRouter;

0 comments on commit dece810

Please sign in to comment.