FIX: Transaction Route names

FIX: Bug where belonging transactions wouldnt select properly
This commit is contained in:
2025-04-21 23:52:32 +03:30
parent 6f0b634314
commit 9faaeef9ce
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ const getBelongingInventory = async (belongingId) => {
const result = await Transaction.aggregate([
{
$match: {
belongingId: ObjectID,
belongingId: belonging._id,
$or: [{ status: 'finished' }, { status: 'pending' }],
},
},