You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do we need a done( ) in the catch section as well? Does it auto exit?
constcreate=function(givenName,surname,dob,gender,height,weight){Person.create({'name.given': givenName,'name.surname': surname,dob: dob,gender: gender,height: height,weight: weight}).then((person)=>{console.log(person.toJSON());done();// We need to call this to terminate the connection.}).catch((err)=>{console.error(err);});};
The text was updated successfully, but these errors were encountered:
Do we need a
done( )
in thecatch
section as well? Does it auto exit?The text was updated successfully, but these errors were encountered: