Skip to content

Commit

Permalink
Fix realtime count
Browse files Browse the repository at this point in the history
  • Loading branch information
ocodista committed Apr 22, 2024
1 parent 4f4c49c commit 785d9dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/web/app/landing-page/SubscribersCount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const getSubscriberCount = async (): Promise<number | null> => {
)
const { count, error } = await supabase
.from(Entities.Subcribers)
.select('id', { count: 'exact' })
.select('id', { count: 'exact', head: true })

if (error) {
console.error(error)
Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web",
"version": "1.0.1",
"version": "1.0.2",
"private": true,
"scripts": {
"dev": "development=true next dev",
Expand Down
2 changes: 2 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
"VERCEL_URL",
"VERCEL_ENV",
"NEXT_PUBLIC_POSTHOG_KEY",
"SUPABASE_URL",
"SUPABASE_SERVICE_ROLE",
"NEXT_PUBLIC_POSTHOG_HOST"
]
}

0 comments on commit 785d9dd

Please sign in to comment.