feat: working on edit profile ticket

This commit is contained in:
Abdalhamid Alhamad
2025-08-05 17:53:38 +03:00
parent 1e2b859b92
commit 275984954e
37 changed files with 298 additions and 275 deletions
+2 -2
View File
@@ -37,8 +37,8 @@ export class Document {
@Column({ type: 'uuid', nullable: true, name: 'created_by_id' })
createdById!: string;
@OneToOne(() => Customer, (customer) => customer.profilePicture, { onDelete: 'SET NULL' })
customerPicture?: Customer;
@OneToOne(() => User, (user) => user.profilePicture, { onDelete: 'SET NULL' })
userPicture?: Customer;
@OneToOne(() => Customer, (customer) => customer.civilIdFront, { onDelete: 'SET NULL' })
customerCivilIdFront?: User;
+1 -1
View File
@@ -51,7 +51,7 @@ export class OciService {
}
const bucketName = BUCKETS[document.documentType];
const objectName = document.name;
const objectName = document.name + document.extension;
const expiration = moment().add(TWO, 'hours').toDate();
try {