u
This commit is contained in:
@@ -384,8 +384,6 @@ export function register(app, basePath = '') {
|
||||
let includeChildren = true;
|
||||
if (req.query.includeChildren !== undefined) {
|
||||
includeChildren = req.query.includeChildren !== 'false' && req.query.includeChildren !== '0';
|
||||
} else if (req.query.variants !== undefined) {
|
||||
includeChildren = req.query.variants !== 'false' && req.query.variants !== '0';
|
||||
}
|
||||
|
||||
try {
|
||||
@@ -395,7 +393,7 @@ export function register(app, basePath = '') {
|
||||
.map((a) => ({
|
||||
...a,
|
||||
childCount: Number(a.childCount ?? 0),
|
||||
isParent: Boolean(a.isParent ?? a.is_parent),
|
||||
isParent: Boolean(a.isParent),
|
||||
smallThumbW: a.smallThumbW ?? null,
|
||||
smallThumbH: a.smallThumbH ?? null,
|
||||
smallThumbBinary: a.smallThumbBinary ?? null,
|
||||
|
||||
Reference in New Issue
Block a user