parse sub channel data on GET api

This commit is contained in:
Corban-Lee Jones 2025-02-25 14:58:56 +00:00
parent 411c9e0597
commit 86e380ec51

View File

@ -69,7 +69,10 @@ export const get = async (request: Request, response: Response) => {
return;
}
data.channels = JSON.parse(data.channels);
// Parse empty channel arrays
data.channels = data.channels === "[null]"
? []
: JSON.parse(data.channels);
response.json(data);
}