(state, options = {})
| 2256 | } |
| 2257 | |
| 2258 | async function listLuckmailPurchasesByProject(state, options = {}) { |
| 2259 | const projectCode = normalizeLuckmailProjectName(options.projectCode || DEFAULT_LUCKMAIL_PROJECT_CODE) |
| 2260 | || DEFAULT_LUCKMAIL_PROJECT_CODE; |
| 2261 | const purchases = await getAllLuckmailPurchases(state, options); |
| 2262 | return purchases.filter((purchase) => isLuckmailPurchaseForProject(purchase, projectCode)); |
| 2263 | } |
| 2264 | |
| 2265 | async function getLuckmailPurchaseById(state, purchaseId, options = {}) { |
| 2266 | const normalizedPurchaseId = Number(normalizeLuckmailPurchaseId(purchaseId)) || 0; |
no test coverage detected