mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-01 12:29:35 +01:00
Merge pull request #2603 from mobeicanyue/patch-3
Fix variable name typo in saveEventData and
This commit is contained in:
commit
b37a60727d
@ -32,7 +32,7 @@ async function relationalQuery(data: {
|
||||
const jsonKeys = flattenJSON(eventData);
|
||||
|
||||
// id, websiteEventId, eventStringValue
|
||||
const flattendData = jsonKeys.map(a => ({
|
||||
const flattenedData = jsonKeys.map(a => ({
|
||||
id: uuid(),
|
||||
websiteEventId: eventId,
|
||||
websiteId,
|
||||
@ -44,7 +44,7 @@ async function relationalQuery(data: {
|
||||
}));
|
||||
|
||||
return prisma.client.eventData.createMany({
|
||||
data: flattendData,
|
||||
data: flattenedData,
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -14,7 +14,7 @@ export async function saveSessionData(data: {
|
||||
|
||||
const jsonKeys = flattenJSON(sessionData);
|
||||
|
||||
const flattendData = jsonKeys.map(a => ({
|
||||
const flattenedData = jsonKeys.map(a => ({
|
||||
id: uuid(),
|
||||
websiteId,
|
||||
sessionId,
|
||||
@ -32,7 +32,7 @@ export async function saveSessionData(data: {
|
||||
},
|
||||
}),
|
||||
client.sessionData.createMany({
|
||||
data: flattendData as any,
|
||||
data: flattenedData as any,
|
||||
}),
|
||||
]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user