feat: introduce asset action count caching

This commit is contained in:
Wyatt Johnson
2018-09-23 20:43:43 -06:00
parent 0e25c8d446
commit d8417eda2e
5 changed files with 64 additions and 16 deletions
+3 -3
View File
@@ -378,9 +378,9 @@ function applyInputToQuery(input: ConnectionInput, query: Query<Comment>) {
* updateCommentActionCounts will update the given comment's action counts.
*
* @param mongo the database handle
* @param tenantID the id of the tenant
* @param id the id of the comment being updated
* @param actionCounts the action counts to merge into the comment
* @param tenantID the id of the Tenant
* @param id the id of the Comment being updated
* @param actionCounts the action counts to merge into the Comment
*/
export async function updateCommentActionCounts(
mongo: Db,