parse sub channel data on GET api
This commit is contained in:
parent
411c9e0597
commit
86e380ec51
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user