summary refs log tree commit diff
path: root/src/api/routes/updates.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/routes/updates.ts')
-rw-r--r--src/api/routes/updates.ts15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/api/routes/updates.ts b/src/api/routes/updates.ts
index 275c458b..7e9128f4 100644
--- a/src/api/routes/updates.ts
+++ b/src/api/routes/updates.ts
@@ -8,19 +8,20 @@ router.get("/", route({}), async (req: Request, res: Response) => {
 	const { client } = Config.get();
 	const platform = req.query.platform;
 
-	if (!platform) throw FieldErrors({
-		platform: {
-			code: "BASE_TYPE_REQUIRED",
-			message: req.t("common:field.BASE_TYPE_REQUIRED"),
-		}
-	});
+	if (!platform)
+		throw FieldErrors({
+			platform: {
+				code: "BASE_TYPE_REQUIRED",
+				message: req.t("common:field.BASE_TYPE_REQUIRED"),
+			},
+		});
 
 	const release = await Release.findOneOrFail({
 		where: {
 			enabled: true,
 			platform: platform as string,
 		},
-		order: { pub_date: "DESC" }
+		order: { pub_date: "DESC" },
 	});
 
 	res.json({