แก้ค้นหาประวัติ by token
This commit is contained in:
parent
ff0be7af48
commit
24c5cbef55
7 changed files with 8 additions and 8 deletions
|
|
@ -45,11 +45,11 @@ export class ProfileFamilyHistoryController extends Controller {
|
|||
const family = await this.familyHistoryRepo.find({
|
||||
take: 1,
|
||||
order: { lastUpdatedAt: "DESC" },
|
||||
where: { id: profile.id },
|
||||
where: { profileId: profile.id },
|
||||
});
|
||||
const children = await this.childrenRepo.find({
|
||||
order: { createdAt: "ASC" },
|
||||
where: { id: profile.id },
|
||||
where: { profileId: profile.id },
|
||||
});
|
||||
return new HttpSuccess(
|
||||
family.length > 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue