mirror of
https://github.com/wassname/talk.git
synced 2026-08-06 13:41:02 +08:00
feat: expanded action counts
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user