แก้apiข้อมูลหลัก

This commit is contained in:
Kittapath 2024-03-26 23:07:55 +07:00
parent 73e07dfed6
commit 6b78a365fa
26 changed files with 1816 additions and 988 deletions

View file

@ -51,6 +51,7 @@ export class ProfileChangeNameController extends Controller {
const lists = await this.changeNameRepository.find({
where: { profileId: profileId },
select: ["id", "prefix", "firstName", "lastName", "status"],
order: { createdAt: "ASC" },
});
return new HttpSuccess(lists);
}
@ -117,7 +118,7 @@ export class ProfileChangeNameController extends Controller {
await this.changeNameRepository.save(data);
return new HttpSuccess();
return new HttpSuccess(data.id);
}
@Patch("{changeNameId}")