MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / flushRevenue

Method flushRevenue

packages/sdks/web/src/index.ts:333–339  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

331 }
332
333 async flushRevenue() {
334 const promises = this.pendingRevenues.map((pending) =>
335 super.revenue(pending.amount, pending.properties)
336 );
337 await Promise.all(promises);
338 this.clearRevenue();
339 }
340
341 clearRevenue() {
342 this.pendingRevenues = [];

Callers 2

flushRevenueFunction · 0.45
testDirectMethodAPIFunction · 0.45

Calls 3

clearRevenueMethod · 0.95
mapMethod · 0.45
revenueMethod · 0.45

Tested by

no test coverage detected