feat: Remove tax forms from staff profile completion queries and related checks
This commit is contained in:
@@ -33,10 +33,7 @@ class StaffConnectorRepositoryImpl implements StaffConnectorRepository {
|
|||||||
final dc.GetStaffProfileCompletionStaff? staff = response.data.staff;
|
final dc.GetStaffProfileCompletionStaff? staff = response.data.staff;
|
||||||
final List<dc.GetStaffProfileCompletionEmergencyContacts>
|
final List<dc.GetStaffProfileCompletionEmergencyContacts>
|
||||||
emergencyContacts = response.data.emergencyContacts;
|
emergencyContacts = response.data.emergencyContacts;
|
||||||
final List<dc.GetStaffProfileCompletionTaxForms> taxForms =
|
return _isProfileComplete(staff, emergencyContacts);
|
||||||
response.data.taxForms;
|
|
||||||
|
|
||||||
return _isProfileComplete(staff, emergencyContacts, taxForms);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -148,7 +145,6 @@ class StaffConnectorRepositoryImpl implements StaffConnectorRepository {
|
|||||||
bool _isProfileComplete(
|
bool _isProfileComplete(
|
||||||
dc.GetStaffProfileCompletionStaff? staff,
|
dc.GetStaffProfileCompletionStaff? staff,
|
||||||
List<dc.GetStaffProfileCompletionEmergencyContacts> emergencyContacts,
|
List<dc.GetStaffProfileCompletionEmergencyContacts> emergencyContacts,
|
||||||
List<dc.GetStaffProfileCompletionTaxForms> taxForms,
|
|
||||||
) {
|
) {
|
||||||
if (staff == null) return false;
|
if (staff == null) return false;
|
||||||
|
|
||||||
@@ -160,7 +156,6 @@ class StaffConnectorRepositoryImpl implements StaffConnectorRepository {
|
|||||||
return (staff.fullName.trim().isNotEmpty) &&
|
return (staff.fullName.trim().isNotEmpty) &&
|
||||||
(staff.email?.trim().isNotEmpty ?? false) &&
|
(staff.email?.trim().isNotEmpty ?? false) &&
|
||||||
emergencyContacts.isNotEmpty &&
|
emergencyContacts.isNotEmpty &&
|
||||||
taxForms.isNotEmpty &&
|
|
||||||
hasExperience;
|
hasExperience;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,11 +15,6 @@ query getStaffProfileCompletion($id: UUID!) @auth(level: USER) {
|
|||||||
emergencyContacts(where: { staffId: { eq: $id } }) {
|
emergencyContacts(where: { staffId: { eq: $id } }) {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
taxForms(where: { staffId: { eq: $id } }) {
|
|
||||||
id
|
|
||||||
formType
|
|
||||||
status
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
query getStaffPersonalInfoCompletion($id: UUID!) @auth(level: USER) {
|
query getStaffPersonalInfoCompletion($id: UUID!) @auth(level: USER) {
|
||||||
|
|||||||
Reference in New Issue
Block a user