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