Skip to content

Commit

Permalink
user profile -- can't see bookmarked resources [clni7ky0v001nyr0ksiaw…
Browse files Browse the repository at this point in the history
…v4hz]
  • Loading branch information
pauloendoh committed Oct 26, 2023
1 parent a60631e commit bb99524
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/domains/user/UserService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ export class UserService {

const tagIds = tags.map((tag) => tag.id)

userInfo.resources = await this.feedRepo.findCompletedResourcesByTagIds(
tagIds
)
const [completedResources, bookmarkedResources] = await Promise.all([
this.feedRepo.findCompletedResourcesByTagIds(tagIds),
this.feedRepo.findBookmarkedResourcesByTagIds(tagIds),
])

userInfo.resources = [...completedResources, ...bookmarkedResources]

// profile
userInfo.profile = await this.profileRepo.findOne({
Expand Down

0 comments on commit bb99524

Please sign in to comment.