Skip to content

Commit

Permalink
still WIP, not working locally from node console
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Chen committed Aug 12, 2021
1 parent 3ac9eac commit 86b029c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/server/processes/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,18 @@ const commonDeploy = async (req, url: string) => {
const publishPlatformEvent = async (req) => {
const oauth = new jsforce.OAuth2({
redirectUri: 'http://hosted-scratch-dev.herokuapp.com/token',
clientId : '3MVG9i1HRpGLXp.qtGFqaMr8A52dTsKrVVd9SaFOoN6aq310o9bvDkaZ0.uIXjnRFXMqB2SKbb5eQUXYQLolw',
clientSecret : '1202EDF576767BD0AFBCE4FAF4F7C009788F58050A96C3E4FCC8336FB767AF2E',
loginUrl: 'http://login.salesforce.com'
clientId : '3MVG9CEn_O3jvv0zQGZ3RC8AeiFxMIGNhYKtIulLBxFxkVptnBgfEX3W3.gPTXg3vk2FdZRV2Ky1ANU.l8B17',
clientSecret : '79CDFBFEFCF697B6E5704EF00A1661C03293D5A344743204CE31A7205FBDCA60',
loginUrl: 'http://shanedevhub.lightning.force.com/'
});

const conn = new jsforce.Connection({ oauth2: oauth });
const userinfo = await conn.authorize(req.query.code);
// const userinfo = await conn.authorize(req.query.code);

const eventData = {
CreatedBy: "heroku-app",
Email__c: "req/email_here",
RepoURL__c: "req/repo_url_here"
};
};

conn.sobject('DemoOrgCreated__e').create(eventData, (err, res) => {
if (err) {
Expand Down

0 comments on commit 86b029c

Please sign in to comment.