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 List<dc.GetStaffProfileCompletionEmergencyContacts>
|
||||
emergencyContacts = response.data.emergencyContacts;
|
||||
final List<dc.GetStaffProfileCompletionTaxForms> taxForms =
|
||||
response.data.taxForms;
|
||||
|
||||
return _isProfileComplete(staff, emergencyContacts, taxForms);
|
||||
return _isProfileComplete(staff, emergencyContacts);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -148,7 +145,6 @@ class StaffConnectorRepositoryImpl implements StaffConnectorRepository {
|
||||
bool _isProfileComplete(
|
||||
dc.GetStaffProfileCompletionStaff? staff,
|
||||
List<dc.GetStaffProfileCompletionEmergencyContacts> emergencyContacts,
|
||||
List<dc.GetStaffProfileCompletionTaxForms> taxForms,
|
||||
) {
|
||||
if (staff == null) return false;
|
||||
|
||||
@@ -160,7 +156,6 @@ class StaffConnectorRepositoryImpl implements StaffConnectorRepository {
|
||||
return (staff.fullName.trim().isNotEmpty) &&
|
||||
(staff.email?.trim().isNotEmpty ?? false) &&
|
||||
emergencyContacts.isNotEmpty &&
|
||||
taxForms.isNotEmpty &&
|
||||
hasExperience;
|
||||
}
|
||||
|
||||
|
||||
@@ -15,11 +15,6 @@ query getStaffProfileCompletion($id: UUID!) @auth(level: USER) {
|
||||
emergencyContacts(where: { staffId: { eq: $id } }) {
|
||||
id
|
||||
}
|
||||
taxForms(where: { staffId: { eq: $id } }) {
|
||||
id
|
||||
formType
|
||||
status
|
||||
}
|
||||
}
|
||||
|
||||
query getStaffPersonalInfoCompletion($id: UUID!) @auth(level: USER) {
|
||||
|
||||
Reference in New Issue
Block a user