Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SAAS-370 - Sails forcedotcom updation (Work in Progress) #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

neerajdixit27
Copy link

This is Work in Progress PR, It includes following changes

  1. Updated JSForce to 1.8.4 version
  2. Added changes for the Data Type support as earlier all the data was default converted to 'String' ignoring the model data type.

if (attributeDefn[dataKey].type === 'datetime') {
//converts defaults to ISO8601 DateTime format
if (typeof dataValue === 'string') {
data[dataKey] = jsforce.SfDate.toDateTimeLiteral(new Date(dataValue));

Choose a reason for hiding this comment

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

handle errors when dateValue can not be parsed.

Copy link
Author

Choose a reason for hiding this comment

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

As discussed with You, It is being handled in the Function which invokes this method.,Have tested it.

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

Successfully merging this pull request may close these issues.

2 participants