feat: surface listing publication blockers
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-08 23:20:31 -04:00
parent 370e4721ed
commit ea145191df
3 changed files with 20 additions and 5 deletions
@@ -40,7 +40,14 @@ export function createListingService({ listingRepository, inventoryImageReposito
},
async list({ sellerId }) {
return listingRepository.listBySellerId(sellerId);
const listings = await listingRepository.listBySellerId(sellerId);
if (!inventoryImageRepository) return listings;
return Promise.all(listings.map(async (listing) => ({
...listing,
imageCount: await inventoryImageRepository.countByInventoryItemId(listing.inventoryItemId),
inventoryStatus: listing.inventoryStatus ?? 'ACTIVE',
})));
},
};
}