feat(people): align people, users, and categories with active inventory records
This commit is contained in:
@@ -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"] })
|
||||
|
||||
Reference in New Issue
Block a user