add registration logs
This commit is contained in:
@@ -230,6 +230,14 @@ export async function registration(
|
||||
|
||||
if (parsed.message_desc === 'Operation successful') {
|
||||
console.log(`registration - ${accountType}`);
|
||||
console.log({
|
||||
fullName: fullName,
|
||||
email,
|
||||
phone: phone,
|
||||
password,
|
||||
accountType,
|
||||
...(accountType === 'b2b' && { companyName: companyName })
|
||||
});
|
||||
await createSession(parsed.message_body.token, email as string);
|
||||
} else {
|
||||
throw parsed;
|
||||
|
||||
Reference in New Issue
Block a user