mirror of
https://github.com/r-ca/kidshift-be.git
synced 2024-10-25 16:14:02 +00:00
ソートするように
This commit is contained in:
parent
b1e7c9f05f
commit
08f22ba0f0
|
@ -7,6 +7,9 @@ async function getHistories(childId: string, containPaid: boolean): Promise<Hist
|
||||||
child_id: childId,
|
child_id: childId,
|
||||||
...(containPaid ? {} : { is_paid: false }),
|
...(containPaid ? {} : { is_paid: false }),
|
||||||
},
|
},
|
||||||
|
orderBy: {
|
||||||
|
registerd_at: "desc",
|
||||||
|
},
|
||||||
}).then((histories) => {
|
}).then((histories) => {
|
||||||
if (!histories) {
|
if (!histories) {
|
||||||
return [];
|
return [];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user