perf(worker): try to improve perf of worker
This commit is contained in:
@@ -588,9 +588,10 @@ export async function getLastScreenViewFromProfileId({
|
||||
return null;
|
||||
}
|
||||
|
||||
const eventInBuffer = await eventBuffer.find(
|
||||
(item) => item.profile_id === profileId,
|
||||
);
|
||||
const eventInBuffer = await eventBuffer.getLastScreenView({
|
||||
projectId,
|
||||
profileId,
|
||||
});
|
||||
|
||||
if (eventInBuffer) {
|
||||
return eventInBuffer;
|
||||
|
||||
Reference in New Issue
Block a user