Skip to content

Commit

Permalink
add this shit cuz its useful for stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Ianyourgod committed Mar 31, 2024
1 parent 29876cf commit bdf2fde
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/db/UserManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,11 @@ class UserManager {
async getProjectData(id) {
const result = await this.projects.findOne({id: id})

// add the views, loves, and votes
result.views = await this.getProjectViews(id);
result.loves = await this.getProjectLoves(id);
result.votes = await this.getProjectVotes(id);

return result;
}

Expand Down

0 comments on commit bdf2fde

Please sign in to comment.