Skip to content

Commit aaebf88

Browse files
committed
Log profile count
1 parent dde2c99 commit aaebf88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/api/src/create-profile.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const createProfile: APIHandler<'create-profile'> = async (body, auth) =>
5858
}
5959
try {
6060
const nProfiles = await pg.one<number>(
61-
`SELECT count(*) FROM users`,
61+
`SELECT count(*) FROM profiles`,
6262
[],
6363
(r) => Number(r.count)
6464
)
@@ -69,6 +69,7 @@ export const createProfile: APIHandler<'create-profile'> = async (body, auth) =>
6969
n % 50 === 0
7070
)
7171
}
72+
console.log(nProfiles, isMilestone(nProfiles))
7273
if (isMilestone(nProfiles)) {
7374
await sendDiscordMessage(
7475
`We just reached **${nProfiles}** total profiles! 🎉`,

0 commit comments

Comments
 (0)