fix(xo-server/rest-api): fix incorrect object's tasks href
Introduced by f3c5e817a
`req.baseUrl` is already handled by `sendObjects`.
This commit is contained in:
parent
cf0e820632
commit
aaffe8c872
@ -14,6 +14,7 @@
|
|||||||
- [Import/VM] Fix `UUID_INVALID(VM, OpaqueRef:...)` error when importing from URL
|
- [Import/VM] Fix `UUID_INVALID(VM, OpaqueRef:...)` error when importing from URL
|
||||||
- [Proxies] Fix `xapi.getOrWaitObject is not a function` is not a function during deployment
|
- [Proxies] Fix `xapi.getOrWaitObject is not a function` is not a function during deployment
|
||||||
- [REST API] Fix empty object's tasks list
|
- [REST API] Fix empty object's tasks list
|
||||||
|
- [REST API] Fix incorrect `href` in `/:collection/:object/tasks`
|
||||||
|
|
||||||
### Packages to release
|
### Packages to release
|
||||||
|
|
||||||
|
@ -626,7 +626,7 @@ export default class RestApi {
|
|||||||
),
|
),
|
||||||
limit: ifDef(query.limit, Number),
|
limit: ifDef(query.limit, Number),
|
||||||
})
|
})
|
||||||
await sendObjects(tasks, req, res, req.baseUrl + '/tasks')
|
await sendObjects(tasks, req, res, '/tasks')
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user