Merge branch 'dev/methapon' into develop
This commit is contained in:
commit
ad3dadd46a
1 changed files with 8 additions and 4 deletions
|
|
@ -101,10 +101,14 @@ export class ProfileFamilyHistoryController extends Controller {
|
||||||
order: { createdAt: "DESC" },
|
order: { createdAt: "DESC" },
|
||||||
where: { profileId },
|
where: { profileId },
|
||||||
});
|
});
|
||||||
return new HttpSuccess({
|
return new HttpSuccess(
|
||||||
...family[0],
|
family.length > 0
|
||||||
children,
|
? {
|
||||||
});
|
...family[0],
|
||||||
|
children,
|
||||||
|
}
|
||||||
|
: null,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Get("history/{profileId}")
|
@Get("history/{profileId}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue