feat: Add optional agentTypeId field to RegisterRequest model.
This commit is contained in:
1 parent
c4c6322507
commit
9512f5ef8d
8 files changed
+264
-112
No files matched your search
@@ -168,6 +168,7 @@ class AuthNotifier extends StateNotifier<AuthState> {
|
||||
required String email,
|
||||
required String password,
|
||||
required String role,
|
||||
String? agentTypeId,
|
||||
}) async {
|
||||
state = state.copyWith(
|
||||
status: AuthStatus.loading,
|
||||
@@ -188,6 +189,7 @@ class AuthNotifier extends StateNotifier<AuthState> {
|
||||
role: role,
|
||||
firstName: firstName,
|
||||
lastName: lastName,
|
||||
agentTypeId: role == 'AGENT' ? agentTypeId : null,
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user