MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / batchSetPurchaseDisabled

Function batchSetPurchaseDisabled

background.js:2133–2140  ·  view source on GitHub ↗
(ids, disabled)

Source from the content-addressed store, hash-verified

2131 });
2132 },
2133 async batchSetPurchaseDisabled(ids, disabled) {
2134 await request('POST', '/api/v1/openapi/email/purchases/batch-disabled', {
2135 jsonData: {
2136 ids: (Array.isArray(ids) ? ids : []).map((id) => Number(id)).filter((id) => Number.isFinite(id) && id > 0),
2137 disabled: disabled ? 1 : 0,
2138 },
2139 });
2140 },
2141 async setPurchaseTag(purchaseId, { tagId, tagName } = {}) {
2142 const body = {};
2143 if (tagId !== undefined) {

Callers

nothing calls this directly

Calls 1

requestFunction · 0.85

Tested by

no test coverage detected