mirror of
https://github.com/r-ca/kidshift-be.git
synced 2024-10-26 00:24:02 +00:00
deleteChild実装
This commit is contained in:
parent
ba77d7a91c
commit
2d53d73174
|
@ -18,4 +18,12 @@ async function createChild(childName: string, homeGroupId: string): Promise<Chil
|
||||||
}).then((child) => { return child; });
|
}).then((child) => { return child; });
|
||||||
}
|
}
|
||||||
|
|
||||||
export { getChilds, createChild };
|
async function deleteChild(childId: string): Promise<Child> {
|
||||||
|
return prisma.child.delete({
|
||||||
|
where: {
|
||||||
|
id: childId
|
||||||
|
}
|
||||||
|
}).then((child) => { return child; });
|
||||||
|
}
|
||||||
|
|
||||||
|
export { getChilds, createChild, deleteChild }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user