@idsoftsource/initial-process 3.9.3 → 3.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -36315,8 +36315,7 @@ class FirstComponent {
|
|
|
36315
36315
|
this.handleAutoNavigation();
|
|
36316
36316
|
this.resumeData = res;
|
|
36317
36317
|
this.store.setProfile(this.resumeData);
|
|
36318
|
-
|
|
36319
|
-
// this.saveUserResume(model.s3Key, res);
|
|
36318
|
+
this.saveUserResume(model.s3Key, res);
|
|
36320
36319
|
console.log('Resume Loaded Successfully:', this.resumeData);
|
|
36321
36320
|
console.log(`Working with ${this.resumeData.basicDetails.firstName}`);
|
|
36322
36321
|
this.isUploading = false;
|
|
@@ -36329,17 +36328,16 @@ class FirstComponent {
|
|
|
36329
36328
|
}
|
|
36330
36329
|
});
|
|
36331
36330
|
}
|
|
36332
|
-
|
|
36333
|
-
|
|
36334
|
-
|
|
36335
|
-
|
|
36336
|
-
|
|
36337
|
-
|
|
36338
|
-
|
|
36339
|
-
|
|
36340
|
-
|
|
36341
|
-
|
|
36342
|
-
// }
|
|
36331
|
+
async saveUserResume(s3Key, parsedResume) {
|
|
36332
|
+
const payload = [{
|
|
36333
|
+
targetUserId: this.roleContextService?.tempUserContext()?.userId ?? (await this.tokenService.getUserId()) ?? '',
|
|
36334
|
+
resumeUrl: s3Key,
|
|
36335
|
+
json: JSON.stringify(parsedResume),
|
|
36336
|
+
}];
|
|
36337
|
+
this.userDetailService.createUserResumes(payload).subscribe({
|
|
36338
|
+
error: (err) => console.error('Failed to save user resume:', err),
|
|
36339
|
+
});
|
|
36340
|
+
}
|
|
36343
36341
|
isAllowedResumeFile(file) {
|
|
36344
36342
|
const name = (file?.name ?? '').toLowerCase();
|
|
36345
36343
|
return name.endsWith('.pdf') || name.endsWith('.doc') || name.endsWith('.docx');
|