add buffer

This commit is contained in:
Carl-Gerhard Lindesvärd
2026-03-06 11:04:51 +01:00
parent 0b5d4fa0d1
commit 8fd8b9319d
6 changed files with 213 additions and 3 deletions

View File

@@ -3,8 +3,8 @@ import { generateDeviceId, parseUserAgent } from '@openpanel/common/server';
import {
getProfileById,
getSalts,
groupBuffer,
replayBuffer,
upsertGroup,
upsertProfile,
} from '@openpanel/db';
import { type GeoLocation, getGeoLocation } from '@openpanel/geo';
@@ -344,7 +344,7 @@ async function handleGroup(
const profileId = payload.profileId ?? context.deviceId;
await Promise.all([
upsertGroup({
groupBuffer.add({
id,
projectId: context.projectId,
type,