-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
'TypeError: data.toISOString is not a function
stuck in this for hours.. any help would be appreciated!
const date = new Date().toISOString();
const response = await eventsApi.createEvent({
data: {
type: "event",
attributes: {
properties: {
hotelId,
checkInDate,
checkOutDate,
bookingId,
firstName,
},
time: date,
uniqueId:"696b3941-6ec8-42cc-854f-1f90be51d8de",
metric : {
"data": {
"type": "metric",
"attributes": {
"name": "Placed Order"
}
}
},
profile: {
data: {
type: 'profile',
attributes: {
email: recipientEmail,
}
}
}
}
}
});Metadata
Metadata
Assignees
Labels
No labels