zappyzep/backend/src/plugins/Automod/functions/sumRecentActionCounts.ts
2020-07-27 22:19:34 +03:00

5 lines
178 B
TypeScript

import { RecentAction } from "../types";
export function sumRecentActionCounts(actions: RecentAction[]) {
return actions.reduce((total, action) => total + action.count, 0);
}