fix: allow sellers to remove public contact methods
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-10 07:56:17 -04:00
parent 73c430b8a5
commit 9a790ce294
12 changed files with 122 additions and 22 deletions
@@ -274,8 +274,8 @@ export function createListingRepository(db) {
marketValueUpdatedAt: override?.createdAt ?? valuation?.calculatedAt ?? null,
sellerDisplayName: result.sellerDisplayName,
sellerDescription: result.sellerSettings?.general?.publicDescription || null,
sellerContactEmail: result.sellerSettings?.general?.publicContactEmail ?? null,
sellerContactPhone: result.sellerSettings?.general?.publicContactPhone ?? null,
sellerContactEmail: result.sellerSettings?.general?.publicContactEmail || null,
sellerContactPhone: result.sellerSettings?.general?.publicContactPhone || null,
};
},
@@ -48,8 +48,8 @@ export function createProductRepository(db) {
...result.product,
sellerDisplayName: result.sellerDisplayName,
sellerDescription: result.sellerSettings?.general?.publicDescription || null,
sellerContactEmail: result.sellerSettings?.general?.publicContactEmail ?? null,
sellerContactPhone: result.sellerSettings?.general?.publicContactPhone ?? null,
sellerContactEmail: result.sellerSettings?.general?.publicContactEmail || null,
sellerContactPhone: result.sellerSettings?.general?.publicContactPhone || null,
};
},