Ignore:
Timestamp:
02/26/25 14:27:26 (6 weeks ago)
Author:
Naum Shapkarovski <naumshapkarovski@…>
Branches:
main
Children:
3c5302a
Parents:
057453c
Message:

chore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/app/api/invoices/[id]/route.ts

    r057453c r299af01  
    9090      // Conditionally delete and recreate items only if they are provided
    9191      if (validation.data.items) {
    92         await tx.invoiceItem.deleteMany({
     92        await tx.lineItem.deleteMany({
    9393          where: { invoiceId: params.id },
    9494        });
     
    174174    await prisma.$transaction(async (tx) => {
    175175      // Delete related items first
    176       await tx.invoiceItem.deleteMany({
     176      await tx.lineItem.deleteMany({
    177177        where: { invoiceId: params.id },
    178178      });
Note: See TracChangeset for help on using the changeset viewer.