feat: expanded action counts

This commit is contained in:
Wyatt Johnson
2018-09-20 15:13:46 -06:00
parent 8d86900376
commit 7eb1755c5e
6 changed files with 264 additions and 54 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import {
ACTION_ITEM_TYPE,
CreateActionInput,
createActions,
generateActionCounts,
encodeActionCounts,
} from "talk-server/models/actions";
import { retrieveAsset } from "talk-server/models/asset";
import {
@@ -186,7 +186,7 @@ async function addCommentActions(
if (upsertedActions.length > 0) {
// Compute the action counts.
const actionCounts = generateActionCounts(...upsertedActions);
const actionCounts = encodeActionCounts(...upsertedActions);
// Update the comment action counts here.
const updatedComment = await updateCommentActionCounts(