79304309

Date: 2024-12-23 21:47:25
Score: 2.5
Natty:
Report link

having similar errors:

Invalid `prisma.b2bTransaction.findUnique()` invocation:
The table `public.B2bTransaction` does not exist in the current database.

    if (!decryptedData.txnId) {
      return { success: false, message: "Transaction ID not found", paymentToken: null };
    }

    // fetch transaction data
    const transaction = await db.b2bTransaction.findUnique({
      where: {
        id: decryptedData.txnId,
        //webhookId: webhookId!
      },
      select: {
        id: true,
        senderUserId: true,
        receiverUserId: true,
        senderBankName: true,
        amount: true,
        status: true,
        webhookStatus: true,
      },
    });

Using Hono with prisma don't know where the error is forming its only happening in production in local everything working fine. Tried methods here but to no avail :/

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): having similar error
  • Low reputation (1):
Posted by: jethiya007