add medreport schema

This commit is contained in:
Danel Kungla
2025-07-09 13:31:37 +03:00
parent 9371ff7710
commit d9198a8a12
73 changed files with 420 additions and 270 deletions

View File

@@ -35,7 +35,6 @@
"lucide-react": "^0.510.0",
"next": "15.3.2",
"react-hook-form": "^7.56.3",
"react-i18next": "^15.5.1",
"sonner": "^2.0.3"
},
"prettier": "@kit/prettier-config",

View File

@@ -55,12 +55,11 @@ export function SignInMethodsContainer(props: {
}
try {
const { data: hasConsentPersonalData } = await client.rpc(
'has_consent_personal_data',
{
const { data: hasConsentPersonalData } = await client
.schema('medreport')
.rpc('has_consent_personal_data', {
account_id: userId,
},
);
});
if (hasConsentPersonalData) {
router.replace(props.paths.returnPath);

View File

@@ -86,7 +86,7 @@ class AuthApi {
if (!user) {
throw new Error('User not authenticated');
}
console.log('test', user, data);
const response = await this.client
.schema('medreport')
.from('account_params')