fix(xo-server/rest-api): handle empty fields param
Introduced by c18373bb0
This commit is contained in:
@@ -83,7 +83,7 @@ async function sendObjects(iterable, req, res, path = req.path) {
|
||||
...object,
|
||||
href: makeUrl(object),
|
||||
})
|
||||
} else if (fields) {
|
||||
} else {
|
||||
fields = fields.split(',')
|
||||
makeResult = object => {
|
||||
const url = makeUrl(object)
|
||||
|
||||
Reference in New Issue
Block a user