fix: ลบ isActive
This commit is contained in:
parent
2d15c5d23f
commit
9e636ff80c
1 changed files with 2 additions and 2 deletions
|
|
@ -48,7 +48,7 @@ export class ProfileOtherController extends Controller {
|
||||||
public async getOther(@Path() profileId: string) {
|
public async getOther(@Path() profileId: string) {
|
||||||
const lists = await this.otherRepository.find({
|
const lists = await this.otherRepository.find({
|
||||||
where: { profileId: profileId },
|
where: { profileId: profileId },
|
||||||
select: ["id", "isActive", "date", "detail"],
|
select: ["id", "date", "detail"],
|
||||||
});
|
});
|
||||||
return new HttpSuccess(lists);
|
return new HttpSuccess(lists);
|
||||||
}
|
}
|
||||||
|
|
@ -75,7 +75,7 @@ export class ProfileOtherController extends Controller {
|
||||||
public async otherHistory(@Path() otherId: string) {
|
public async otherHistory(@Path() otherId: string) {
|
||||||
const record = await this.otherHistoryRepository.find({
|
const record = await this.otherHistoryRepository.find({
|
||||||
where: { profileOtherId: otherId },
|
where: { profileOtherId: otherId },
|
||||||
select: ["id", "isActive", "date", "detail"],
|
select: ["id", "date", "detail"],
|
||||||
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