mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2026-10-27 04:17:57 +00:00
feat: working on edit profile ticket
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user