diff --git a/apps/api/src/app/export/export.service.ts b/apps/api/src/app/export/export.service.ts index b43c6d4eb..219ffffda 100644 --- a/apps/api/src/app/export/export.service.ts +++ b/apps/api/src/app/export/export.service.ts @@ -46,17 +46,6 @@ export class ExportService { } ); - const tags = (await this.tagService.getTagsForUser(userId)) - .filter(({ isUsed }) => { - return isUsed; - }) - .map(({ id, name }) => { - return { - id, - name - }; - }); - let { activities } = await this.orderService.getOrders({ filters, userCurrency, @@ -73,6 +62,17 @@ export class ExportService { }); } + const tags = (await this.tagService.getTagsForUser(userId)) + .filter(({ isUsed }) => { + return isUsed; + }) + .map(({ id, name }) => { + return { + id, + name + }; + }); + return { meta: { date: new Date().toISOString(), version: environment.version }, accounts,