Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit f33b646

Browse files
authored
Fix Inacurrate Channel Count (#405)
1 parent 7f93597 commit f33b646

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/happy-scissors-peel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"dynamica-v2": patch
3+
---
4+
5+
Fix inaccurate channel count

src/features/primary/primary.events.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { getPresence } from "@/utils/presence";
88
import { PrimaryService } from "./primary.service";
99
import { type Drizzle, DRIZZLE_TOKEN } from "../drizzle/drizzle.module";
1010
import { count, eq } from "drizzle-orm";
11-
import { primaryTable } from "../drizzle/schema";
11+
import { primaryTable, secondaryTable } from "../drizzle/schema";
1212

1313
@Injectable()
1414
export class PrimaryEvents {
@@ -42,7 +42,7 @@ export class PrimaryEvents {
4242
.select({
4343
secondaryCount: count(),
4444
})
45-
.from(primaryTable);
45+
.from(secondaryTable);
4646

4747
channel.client.user.setPresence(getPresence(primaryCount + secondaryCount));
4848

0 commit comments

Comments
 (0)