feat: update customer profile picture and notifications settings

This commit is contained in:
Abdalhamid Alhamad
2024-12-12 13:15:47 +03:00
parent 4867a5f858
commit 51fa61dbc6
28 changed files with 150 additions and 135 deletions

View File

@ -80,7 +80,7 @@ export class TaskService {
const [imageUrl, submissionUrl, profilePictureUrl] = await Promise.all([
this.ociService.generatePreSignedUrl(task.image),
this.ociService.generatePreSignedUrl(task.submission?.proofOfCompletion),
this.ociService.generatePreSignedUrl(task.assignedTo.customer.user.profilePicture),
this.ociService.generatePreSignedUrl(task.assignedTo.customer.profilePicture),
]);
task.image.url = imageUrl;
@ -89,8 +89,8 @@ export class TaskService {
task.submission.proofOfCompletion.url = submissionUrl;
}
if (task.assignedTo.customer.user.profilePicture) {
task.assignedTo.customer.user.profilePicture.url = profilePictureUrl;
if (task.assignedTo.customer.profilePicture) {
task.assignedTo.customer.profilePicture.url = profilePictureUrl;
}
}),
);