Browse Source
Merge pull request #145 from dandevaud/bugfix/Several-Bugfixes
Always return tags.isUsed = true
pull/5027/head
dandevaud
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
3 deletions
-
apps/api/src/services/tag/tag.service.ts
|
|
@ -15,7 +15,8 @@ export class TagService { |
|
|
|
where: { |
|
|
|
userId |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
symbolProfile: {} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -34,11 +35,11 @@ export class TagService { |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
return tags.map(({ _count, id, name, userId }) => ({ |
|
|
|
return tags.map(({ id, name, userId }) => ({ |
|
|
|
id, |
|
|
|
name, |
|
|
|
userId, |
|
|
|
isUsed: _count.orders > 0 |
|
|
|
isUsed: true |
|
|
|
})); |
|
|
|
} |
|
|
|
} |
|
|
|