add medreport schema
This commit is contained in:
@@ -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