แก้ค้นหาประวัติ by token

This commit is contained in:
Kittapath 2024-05-23 17:20:15 +07:00
parent ff0be7af48
commit 24c5cbef55
7 changed files with 8 additions and 8 deletions

View file

@ -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