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
1995f44d8d
commit
bb4b6410fd
|
@ -1,7 +1,7 @@
|
|||
import { Child } from '@prisma/client';
|
||||
import prisma from '@src/prisma';
|
||||
|
||||
async function getChildList(homeGroupId: string): Promise<Child[]> {
|
||||
async function getChilds(homeGroupId: string): Promise<Child[]> {
|
||||
return prisma.child.findMany({
|
||||
where: {
|
||||
home_group_id: homeGroupId
|
||||
|
@ -10,4 +10,4 @@ async function getChildList(homeGroupId: string): Promise<Child[]> {
|
|||
}
|
||||
|
||||
|
||||
export { getChildList };
|
||||
export { getChilds };
|
||||
|
|
Loading…
Reference in New Issue
Block a user