Skip to content

Conversation

@adamjonas
Copy link
Collaborator

No description provided.

if (header === 'indexed_at') {
postData[header] = new Date().toISOString(); // Set the current date and time
} else if (header === 'Id') {
postData[header] = 'googlesheet-' + (rowIndex + 1); // Set the id column as "googlesheet-1", "googlesheet-2", ...
Copy link
Collaborator Author

@adamjonas adamjonas Jul 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
postData[header] = 'googlesheet-' + (rowIndex + 1); // Set the id column as "googlesheet-1", "googlesheet-2", ...
postData[header] = 'csv-upload-' + (rowIndex + 1); // Set the id column as "csv-upload-1", "csv-upload-2", ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants