From f790315d3f252cee8f5435524e57772a4d014853 Mon Sep 17 00:00:00 2001
From: Alex <alex.tran1502@gmail.com>
Date: Sat, 19 Mar 2022 10:26:58 -0500
Subject: [PATCH] Fixed mapbox key required incorrect (#62)

---
 server/src/config/app.config.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/src/config/app.config.ts b/server/src/config/app.config.ts
index 21e156fe75..8114e6e0dc 100644
--- a/server/src/config/app.config.ts
+++ b/server/src/config/app.config.ts
@@ -15,7 +15,7 @@ export const immichAppConfig: ConfigModuleOptions = {
     MAPBOX_KEY: Joi.any().when('ENABLE_MAPBOX', {
       is: true,
       then: Joi.string().required(),
-      otherwise: Joi.string().optional,
+      otherwise: Joi.string().optional(),
     }),
   }),
 };