We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4489e0c commit 37c580bCopy full SHA for 37c580b
src/durable-objects/supabase-do.ts
@@ -47,9 +47,11 @@ export class SupabaseDO extends DurableObject<Env> {
47
private async fetchStats(): Promise<StatsResponse | undefined> {
48
try {
49
const { data, error } = await this.supabase
50
- .rpc('get_stats')
51
- .returns<StatsResponse>()
52
- .single();
+ .rpc('get_stats', undefined, {
+ count: 'exact'
+ })
53
+ .select('*')
54
+ .maybeSingle();
55
56
if (error) {
57
console.error('Error fetching stats:', error);
0 commit comments