fix: operator bug

This commit is contained in:
minkik 2023-05-18 10:35:24 +09:00 committed by Joseph Lee
parent ed29fc08e8
commit 555e5afd15
7 changed files with 9 additions and 7 deletions

View file

@ -30,7 +30,9 @@ async function relationalQuery(data: {
const { websiteId, eventId, eventData } = data;
const jsonKeys = flattenJSON(eventData);
if (jsonKeys.length == 0) {
return Promise.resolve({ count: 0 });
}
//id, websiteEventId, eventStringValue
const flattendData = jsonKeys.map(a => ({
id: uuid(),