Ashiqur Rahman
06/30/2020, 12:45 PMconst [updatedUser] = await prisma.charge.updateMany({
where: { stripeId: chargeId },
data: { refunded: true },
});
whats wrong with this array destructuring?
isn't is supposed to return an array?
but, I am getting the following error:
Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() methodRyan
06/30/2020, 12:51 PM{ count: 5 }