[Bug] Database Error: Could not find table 'public.v_user_status' in schema cache
Bug Description
⨯ Error: Không đọc được trạng thái người dùng: Could not find the table 'public.v_user_status' in the schema cache
at getUserStatus (lib/billing/quota.ts:37:20)
at async AppLayout (app/(app)/layout.tsx:21:18)
35 | .maybeSingle();
36 |
37 | if (error) throw new Error(Không đọc được trạng thái người dùng: ${error.message});
| ^
38 | return data as UserStatus | null;
39 | }
40 | {
digest: '3969975130'
}
⨯ Error: Không đọc được trạng thái người dùng: Could not find the table 'public.v_user_status' in the schema cache
at getUserStatus (lib/billing/quota.ts:37:20)
at async DashboardPage (app/(app)/dashboard/page.tsx:17:18)
35 | .maybeSingle();
36 |
37 | if (error) throw new Error(Không đọc được trạng thái người dùng: ${error.message});
| ^
38 | return data as UserStatus | null;
39 | }
40 | {
digest: '1046512149'
}
GET /dashboard 500 in 1818ms
Could not open quota.ts in the editor.
The editor process exited with an error: Terminal editors can only be used on macOS.
To set up the editor integration, add something like REACT_EDITOR=atom to the .env.local file in your project folder and restart the development server.
Could not open quota.ts in the editor.
The editor process exited with an error: Terminal editors can only be used on macOS.
To set up the editor integration, add something like REACT_EDITOR=atom to the .env.local file in your project folder and restart the development server.
Environment Info
- Platform: linux
- Terminal: vte-based
- Version: 2.1.245
- Feedback ID: 4c46b4a4-4187-499a-a5eb-a934b160d4f7
Errors
[]This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗