add registration logs

This commit is contained in:
smanylov
2026-02-05 12:17:52 +07:00
parent 1037347e06
commit 8bf5111d7c
+8
View File
@@ -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;