style: format media music implementation

This commit is contained in:
MythEclipse
2026-05-15 18:04:39 +07:00
parent 192f83d31d
commit ff2792d403
13 changed files with 150 additions and 62 deletions

View File

@@ -23,7 +23,11 @@ export function createMediaRoutes(controller: MediaRouteController): Router {
try {
const { source } = req.body as { source?: string };
if (!source) {
throw new AppError("Media source is required", "MISSING_MEDIA_SOURCE", 400);
throw new AppError(
"Media source is required",
"MISSING_MEDIA_SOURCE",
400,
);
}
res.json(await controller.queue(source));
} catch (error) {
@@ -48,4 +52,4 @@ export function createMediaRoutes(controller: MediaRouteController): Router {
});
return router;
}
}