diff --git a/api/resolvers/user.js b/api/resolvers/user.js index 03f6a8d1..3dd6863f 100644 --- a/api/resolvers/user.js +++ b/api/resolvers/user.js @@ -935,7 +935,8 @@ export default { // get the user's first item const item = await models.item.findFirst({ where: { - userId: user.id + userId: user.id, + OR: [{ invoiceActionState: 'PAID' }, { invoiceActionState: null }] }, orderBy: { createdAt: 'asc'