Skip to content

Commit

Permalink
Update database to toki
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsuh committed Jul 2, 2016
1 parent 3da94be commit ae2646c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 88 deletions.
43 changes: 0 additions & 43 deletions build/app/api/v1/slack_users.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config.json
Expand Up @@ -2,7 +2,7 @@
"development": { "development": {
"username": null, "username": null,
"password": null, "password": null,
"database": "navi", "database": "toki",
"host": "127.0.0.1", "host": "127.0.0.1",
"dialect": "postgres" "dialect": "postgres"
}, },
Expand Down
44 changes: 0 additions & 44 deletions src/app/api/v1/slack_users.js
Expand Up @@ -96,50 +96,6 @@ res.json({"hello":"world"});
// }) // })
// .then(cb); // .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 SlackUserId = 'U121ZK15J';
var UserId = 1; var UserId = 1;
// models.User.find({ // models.User.find({
Expand Down

0 comments on commit ae2646c

Please sign in to comment.