Skip to content
Permalink
Browse files

Update database to toki

  • Loading branch information...
kevinsuh committed Jul 2, 2016
1 parent 3da94be commit ae2646c1e96ec8cf080f255053e45b1b49b1bee2
Showing with 1 addition and 88 deletions.
  1. +0 −43 build/app/api/v1/slack_users.js
  2. +1 −1 config.json
  3. +0 −44 src/app/api/v1/slack_users.js

Some generated files are not rendered by default. Learn more.

@@ -2,7 +2,7 @@
"development": {
"username": null,
"password": null,
"database": "navi",
"database": "toki",
"host": "127.0.0.1",
"dialect": "postgres"
},
@@ -96,50 +96,6 @@ res.json({"hello":"world"});
// })
// .then(cb);

// const teamData = { id: 'T121VLM63 4114',
// bot:
// { token: 'xoxb-52208318340-fwvhQnvbbmRctztpuFxrIxdG',
// user_id: 'U1J649CA0',
// createdBy: 'U121U9CAU' },
// createdBy: 'U121U9CAU',
// url: 'https://heynavi.slack.com/',
// name: 'Navi',
// token: 'xoxb-52208318340-fwvhQnvbbmRctztpuFxrIxdG' };
// const TeamId = teamData.id;
// const { url, name, token, createdBy } = teamData;
// models.Team.find({
// where: { TeamId }
// })
// .then((team) => {
// console.log("team is!!");
// console.log(team);
// console.log(`url: ${url}`);
// console.log(`token: ${token}`);
// console.log(`name: ${name}`);
// console.log(`createdBy: ${createdBy}`);
// if (!team) {
// console.log("could not find team");
// return models.Team.create({
// TeamId,
// url,
// name,
// token,
// createdBy
// });
// } else {
// console.log("found team");
// return team.update({
// TeamId,
// url,
// name,
// token,
// createdBy
// });
// }
// })
// .then(cb);


var SlackUserId = 'U121ZK15J';
var UserId = 1;
// models.User.find({

0 comments on commit ae2646c

Please sign in to comment.
You can’t perform that action at this time.