Skip to content

Commit 6d20752

Browse files
committed
ts fixes
1 parent 58d8abb commit 6d20752

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/routes/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export const apiRoutes = (app: express.Application): void => {
232232
}
233233
}
234234

235-
const assetPath = req.params.path;
235+
const assetPath = req.params.path as string;
236236
const assetUrl = `${foundryBaseUrl}/${assetPath}`;
237237

238238
log.debug(`Proxying asset request to: ${assetUrl}`);

src/routes/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ router.post('/reset-password', passwordResetRateLimiter, async (req: Request, re
495495
// Validate a reset token (lets frontend check before showing form)
496496
router.get('/validate-reset-token/:token', passwordResetRateLimiter, async (req: Request, res: Response) => {
497497
try {
498-
const { token } = req.params;
498+
const token = req.params.token as string;
499499

500500
if (!token) {
501501
res.status(400).json({ valid: false });

0 commit comments

Comments
 (0)