fix: api integration

This commit is contained in:
Mohamed Maoulainine Maoulainine
2025-05-02 01:26:08 +02:00
parent 49e52e1826
commit c3ad092512
7 changed files with 374 additions and 130 deletions

View File

@ -22,16 +22,16 @@ class Project {
this._idProject = value;
}
get projectName(): string | undefined {
return this._projectName;
get projectName(): string {
return this._projectName ?? "";
}
set projectName(value: string | undefined) {
this._projectName = value;
}
get creationDate(): string | undefined {
return this._creationDate;
get creationDate(): string {
return this._creationDate ?? "";
}
set creationDate(value: string | undefined) {
@ -77,6 +77,13 @@ class Project {
status: this.status,
};
}
toCreatePayload() {
return {
projectName: this.projectName,
logo: this.logo,
};
}
}
export default Project;