Browse Source

Refactoring

pull/4337/head
Thomas Kaul 2 months ago
parent
commit
a42fb0403f
  1. 22
      apps/api/src/app/export/export.service.ts

22
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({ let { activities } = await this.orderService.getOrders({
filters, filters,
userCurrency, 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 { return {
meta: { date: new Date().toISOString(), version: environment.version }, meta: { date: new Date().toISOString(), version: environment.version },
accounts, accounts,

Loading…
Cancel
Save