Commit 01562733 authored by Rosanny Sihombing's avatar Rosanny Sihombing
Browse files

minor update

parent 898eab3b
...@@ -3,7 +3,7 @@ import { dbConnection } from '../config/dbconn' ...@@ -3,7 +3,7 @@ import { dbConnection } from '../config/dbconn'
const dbController = { const dbController = {
// ===================== user db ===================== // ===================== user db =====================
registerNewUser: function (data: any, callback: any) { registerNewUser: function (data: any, callback: any) {
dbConnection.user.getConnection(function (err: any, thisconn) { dbConnection.user.getConnection(function (err: any, thisconn: any) {
thisconn.beginTransaction(function (err: any) { // START TRANSACTION thisconn.beginTransaction(function (err: any) { // START TRANSACTION
if (err) { throw err } if (err) { throw err }
// insert profile // insert profile
...@@ -158,7 +158,7 @@ const dbController = { ...@@ -158,7 +158,7 @@ const dbController = {
return null return null
}, },
verifyUserAccount: function (userData: any, callback: any) { verifyUserAccount: function (userData: any, callback: any) {
dbConnection.user.getConnection(function (err: any, thisconn) { dbConnection.user.getConnection(function (err: any, thisconn: any) {
thisconn.beginTransaction(function (err: any) { // START TRANSACTION thisconn.beginTransaction(function (err: any) { // START TRANSACTION
if (err) { throw err } if (err) { throw err }
// update user status // update user status
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment