fix: return more data
This commit is contained in:
parent
07d2833b41
commit
ff3f005b91
1 changed files with 0 additions and 2 deletions
|
|
@ -48,7 +48,6 @@ export class ProfileOtherController extends Controller {
|
|||
public async getOther(@Path() profileId: string) {
|
||||
const lists = await this.otherRepository.find({
|
||||
where: { profileId: profileId },
|
||||
select: ["id", "date", "detail"],
|
||||
});
|
||||
return new HttpSuccess(lists);
|
||||
}
|
||||
|
|
@ -75,7 +74,6 @@ export class ProfileOtherController extends Controller {
|
|||
public async otherHistory(@Path() otherId: string) {
|
||||
const record = await this.otherHistoryRepository.find({
|
||||
where: { profileOtherId: otherId },
|
||||
select: ["id", "date", "detail"],
|
||||
order: { createdAt: "DESC" },
|
||||
});
|
||||
return new HttpSuccess(record);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue