add life data for tanstak table
This commit is contained in:
@@ -224,7 +224,6 @@ export async function registration(
|
||||
if (parsed.message_desc === 'Operation successful') {
|
||||
await createSession(parsed.message_body.token, email);
|
||||
} else {
|
||||
console.log('error');
|
||||
throw parsed;
|
||||
}
|
||||
} else {
|
||||
@@ -234,8 +233,6 @@ export async function registration(
|
||||
if (error) {
|
||||
const typedError = error as any;
|
||||
const errors: Record<string, string> = {};
|
||||
console.log(typedError);
|
||||
console.log(typedError.message_body);
|
||||
|
||||
switch (typedError.message_code) {
|
||||
case 1:
|
||||
@@ -273,8 +270,7 @@ export async function registration(
|
||||
error: errors
|
||||
};
|
||||
}
|
||||
console.log('finale error');
|
||||
console.log(error);
|
||||
|
||||
throw error;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user