แก้apiข้อมูลหลัก
This commit is contained in:
parent
73e07dfed6
commit
6b78a365fa
26 changed files with 1816 additions and 988 deletions
|
|
@ -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}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue