This commit is contained in:
Carl-Gerhard Lindesvärd
2026-01-25 14:36:44 +01:00
parent 286f8e160b
commit bcddc6f284
2 changed files with 13 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ import { generateDeviceId, parseUserAgent } from '@openpanel/common/server';
import { getProfileById, getSalts, upsertProfile } from '@openpanel/db';
import { type GeoLocation, getGeoLocation } from '@openpanel/geo';
import { getEventsGroupQueueShard } from '@openpanel/queue';
import { getRedisCache } from '@openpanel/redis';
import { getRedisCache, getRedisQueue } from '@openpanel/redis';
import {
type IDecrementPayload,
@@ -419,7 +419,7 @@ export async function fetchDeviceId(
});
try {
const multi = getRedisCache().multi();
const multi = getRedisQueue().multi();
multi.exists(`bull:sessions:sessionEnd:${projectId}:${currentDeviceId}`);
multi.exists(`bull:sessions:sessionEnd:${projectId}:${previousDeviceId}`);
const res = await multi.exec();