Skip to content

Commit

Permalink
Adding Credits
Browse files Browse the repository at this point in the history
  • Loading branch information
ShankyTiwari committed Feb 17, 2018
1 parent 77eaba0 commit 61d2fe2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion client/js/auth.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ app.controller('authController', function ($scope, $location, $timeout, appServi
let TypeTimer;
const TypingInterval = 800;
/* usernamme check variables ends*/


$scope.initiateCheckUserName = () => {
$scope.data.usernameAvailable = false;
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,5 @@
"express": "^4.16.2",
"mysql": "^2.15.0",
"socket.io": "^2.0.4"
},
"devDependencies": {
"eslint": "^4.16.0"
}
}
6 changes: 6 additions & 0 deletions utils/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
* Real Time chatting app
* @author Shashank Tiwari
*/

/**
* Source code by https://codeburst.io/@MichalMecinski
* https://codeburst.io/node-js-mysql-and-promises-4c3be599909b
*/

const mysql = require('mysql');

class Db {
Expand Down
1 change: 0 additions & 1 deletion utils/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ class Helper{
}

getChatList(userId, userSocketId){
console.log(userId, userSocketId);
try {
return Promise.all([
this.db.query(`SELECT id,username,online,socketid FROM user WHERE id = ?`, [userId]),
Expand Down

0 comments on commit 61d2fe2

Please sign in to comment.