|
|
@ -89,7 +89,9 @@ export class OrderController {
|
|
|
|
@Headers(HEADER_KEY_IMPERSONATION.toLowerCase()) impersonationId,
|
|
|
|
@Headers(HEADER_KEY_IMPERSONATION.toLowerCase()) impersonationId,
|
|
|
|
@Query('accounts') filterByAccounts?: string,
|
|
|
|
@Query('accounts') filterByAccounts?: string,
|
|
|
|
@Query('assetClasses') filterByAssetClasses?: string,
|
|
|
|
@Query('assetClasses') filterByAssetClasses?: string,
|
|
|
|
@Query('tags') filterByTags?: string
|
|
|
|
@Query('skip') skip?: number,
|
|
|
|
|
|
|
|
@Query('tags') filterByTags?: string,
|
|
|
|
|
|
|
|
@Query('take') take?: number
|
|
|
|
): Promise<Activities> {
|
|
|
|
): Promise<Activities> {
|
|
|
|
const filters = this.apiService.buildFiltersFromQueryParams({
|
|
|
|
const filters = this.apiService.buildFiltersFromQueryParams({
|
|
|
|
filterByAccounts,
|
|
|
|
filterByAccounts,
|
|
|
@ -105,6 +107,8 @@ export class OrderController {
|
|
|
|
filters,
|
|
|
|
filters,
|
|
|
|
userCurrency,
|
|
|
|
userCurrency,
|
|
|
|
includeDrafts: true,
|
|
|
|
includeDrafts: true,
|
|
|
|
|
|
|
|
skip: isNaN(skip) ? undefined : skip,
|
|
|
|
|
|
|
|
take: isNaN(take) ? undefined : take,
|
|
|
|
userId: impersonationUserId || this.request.user.id,
|
|
|
|
userId: impersonationUserId || this.request.user.id,
|
|
|
|
withExcludedAccounts: true
|
|
|
|
withExcludedAccounts: true
|
|
|
|
});
|
|
|
|
});
|
|
|
|