Browse Source

Feature/refactor export service (#5276)

* Refactor export service
pull/5307/head
Thomas Kaul 1 week ago
committed by GitHub
parent
commit
32e0e60fb2
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 7
      apps/api/src/app/export/export.service.ts

7
apps/api/src/app/export/export.service.ts

@ -141,15 +141,16 @@ export class ExportService {
);
const tags = (await this.tagService.getTagsForUser(userId))
.filter(
({ id, isUsed }) =>
.filter(({ id, isUsed }) => {
return (
isUsed &&
activities.some((activity) => {
return activity.tags.some(({ id: tagId }) => {
return tagId === id;
});
})
)
);
})
.map(({ id, name }) => {
return {
id,

Loading…
Cancel
Save