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:
Julien Fontanet 2024-02-05 13:29:21 +01:00
parent cf0e820632
commit aaffe8c872
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@
- [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
- [REST API] Fix empty object's tasks list
- [REST API] Fix incorrect `href` in `/:collection/:object/tasks`
### Packages to release

View File

@ -626,7 +626,7 @@ export default class RestApi {
),
limit: ifDef(query.limit, Number),
})
await sendObjects(tasks, req, res, req.baseUrl + '/tasks')
await sendObjects(tasks, req, res, '/tasks')
})
)