Fix standalone TTR preview route without saved match ID
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 1m0s
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 1m0s
This commit is contained in:
@@ -247,3 +247,9 @@ export const getTtrPreviewPlayers = async (req, res) => {
|
||||
return res.status(error.statusCode || 500).json({ error: error.message || 'TTR-Werte konnten nicht geladen werden' });
|
||||
}
|
||||
};
|
||||
|
||||
export const getStandaloneTtrPreviewPlayers = async (req, res) => {
|
||||
// The literal /ttr-preview/standalone route has no :matchId parameter.
|
||||
req.params.matchId = 'standalone';
|
||||
return getTtrPreviewPlayers(req, res);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user