feat(people): align people, users, and categories with active inventory records

This commit is contained in:
2026-06-19 17:14:22 +02:00
parent c123170a46
commit 7b8a415c6a
9 changed files with 165 additions and 104 deletions
+1 -4
View File
@@ -248,10 +248,7 @@ export async function updatePersonUserUseCase(
try {
return await prisma.$transaction(async (tx) => {
const existing = await tx.person.findUnique({
where: { id },
select: { id: true, userId: true },
})
const existing = await PersonService.findById(id, tx)
if (!existing) {
return personError({ id: ["Person not found"] })