finishing refactor

This commit is contained in:
Marek Maslowski
2026-04-04 18:16:46 +02:00
parent 8c125738e8
commit 3d0249e076
3 changed files with 77 additions and 85 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ router.get('/assets/:tripId/:photoId/:ownerId/info', authenticate, async (req: R
router.get('/assets/:tripId/:photoId/:ownerId/:kind', authenticate, async (req: Request, res: Response) => {
const authReq = req as AuthRequest;
const { tripId, photoId, ownerId, kind } = req.params;
const { size = 'sm' } = req.query;
const { size = "sm" } = req.query;
if (kind !== 'thumbnail' && kind !== 'original') {
handleServiceResult(res, fail('Invalid asset kind', 400));