This commit is contained in:
2026-04-07 22:02:43 +02:00
parent 3f3f939267
commit e320feb2d7
17 changed files with 268 additions and 139 deletions

View File

@@ -61,13 +61,6 @@ function appendPopulate(query, populate, prefix = "populate") {
return
}
if (value && typeof value === "object") {
const entries = Object.entries(value)
const allTrue = entries.length > 0 && entries.every(([, v]) => v === true)
if (allTrue) {
const list = entries.map(([k]) => k).join(",")
query.set(`${prefix}[${key}][populate]`, list)
return
}
appendPopulate(query, value, `${prefix}[${key}][populate]`)
}
})