mirror of
https://github.com/ow-mods/ow-mod-db.git
synced 2025-12-11 20:15:24 +01:00
fix mod install counts
This commit is contained in:
parent
98b31a97a4
commit
2f30a0aeb1
@ -85,7 +85,7 @@ async function run() {
|
||||
const modListWithAnalytics = cleanedUpModList.map((mod) => ({
|
||||
...mod,
|
||||
viewCount: viewCounts[getModPathName(mod.name)] ?? 0,
|
||||
installCount: installCounts[getModPathName(mod.name)] ?? 0,
|
||||
installCount: installCounts[mod.uniqueName] ?? 0,
|
||||
}));
|
||||
|
||||
const databaseJson = toJsonString({
|
||||
|
||||
@ -8,11 +8,12 @@ import { getDiff } from "../get-diff";
|
||||
import { sendDiscordNotifications } from "../send-discord-notifications";
|
||||
import { toJsonString } from "../to-json-string";
|
||||
import { getViewCounts } from "../get-view-counts";
|
||||
import { getInstallCounts } from "../get-install-counts";
|
||||
|
||||
async function test() {
|
||||
const viewCounts = await getViewCounts(googleServiceAccount);
|
||||
const installCounts = await getInstallCounts(googleServiceAccount);
|
||||
|
||||
console.log("result", toJsonString(viewCounts));
|
||||
console.log("installCounts", toJsonString(installCounts));
|
||||
}
|
||||
|
||||
test();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user