Ensure sendMBOnce only sends event once (#5481)

GitOrigin-RevId: 360ae263213b4fd36aa33d41c6d54ef91f7f54fa
This commit is contained in:
Alf Eaton 2021-10-15 10:46:23 +01:00 committed by Copybot
parent 09f3962ded
commit 01f7f19446

View file

@ -33,7 +33,7 @@ export function sendMB(key, segmentation = {}) {
export function sendMBOnce(key, segmentation = {}) {
if (alreadySent(key)) return
sendMB(key, segmentation)
markAsSent()
markAsSent(key)
}
export function sendMBSampled(key, body = {}, rate = 0.01) {