Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Mike Cao
2024-03-14 02:45:28 -07:00
4 changed files with 34 additions and 34 deletions

View File

@@ -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,
});
}

View File

@@ -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,
}),
]);
}