add medreport schema
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user