feat: return more metadata for display
This commit is contained in:
parent
86b5221d24
commit
6d1b0f5379
1 changed files with 1 additions and 3 deletions
|
|
@ -47,8 +47,7 @@ export class ProfileNopaidController extends Controller {
|
||||||
})
|
})
|
||||||
public async getNopaid(@Path() profileId: string) {
|
public async getNopaid(@Path() profileId: string) {
|
||||||
const lists = await this.nopaidRepository.find({
|
const lists = await this.nopaidRepository.find({
|
||||||
where: { profileId: profileId },
|
where: { profileId },
|
||||||
select: ["id", "isActive", "date", "reference", "detail", "refCommandNo", "refCommandDate"],
|
|
||||||
});
|
});
|
||||||
return new HttpSuccess(lists);
|
return new HttpSuccess(lists);
|
||||||
}
|
}
|
||||||
|
|
@ -81,7 +80,6 @@ export class ProfileNopaidController extends Controller {
|
||||||
public async nopaidHistory(@Path() nopaidId: string) {
|
public async nopaidHistory(@Path() nopaidId: string) {
|
||||||
const record = await this.nopaidHistoryRepository.find({
|
const record = await this.nopaidHistoryRepository.find({
|
||||||
where: { profileNopaidId: nopaidId },
|
where: { profileNopaidId: nopaidId },
|
||||||
select: ["id", "isActive", "date", "reference", "detail", "refCommandNo", "refCommandDate"],
|
|
||||||
order: { createdAt: "DESC" },
|
order: { createdAt: "DESC" },
|
||||||
});
|
});
|
||||||
return new HttpSuccess(record);
|
return new HttpSuccess(record);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue