ソートするように

This commit is contained in:
ろむねこ 2024-07-23 12:58:59 +09:00
parent b1e7c9f05f
commit 08f22ba0f0
Signed by: Fujimatsu
GPG Key ID: FA1F39A1BA37D168

View File

@ -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 [];