From e13fec1a8b7786ac6a4ff406f806289e8ea69414 Mon Sep 17 00:00:00 2001 From: CEC Date: Wed, 13 Apr 2022 14:34:35 +0200 Subject: [PATCH] Fix Map Controller SafeParse -> Parse --- pusher/src/Controller/MapController.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pusher/src/Controller/MapController.ts b/pusher/src/Controller/MapController.ts index 2dcf2d36..19131a24 100644 --- a/pusher/src/Controller/MapController.ts +++ b/pusher/src/Controller/MapController.ts @@ -160,12 +160,12 @@ export class MapController extends BaseHttpController { } } } - const mapDetails = isMapDetailsData.safeParse( + const mapDetails = isMapDetailsData.parse( await adminApi.fetchMapDetails(query.playUri as string, userId) ); - if (mapDetails.success && DISABLE_ANONYMOUS) { - mapDetails.data.authenticationMandatory = true; + if (DISABLE_ANONYMOUS) { + mapDetails.authenticationMandatory = true; } res.json(mapDetails);