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'
const dbController = {
// ===================== user db =====================
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
if (err) { throw err }
// insert profile
......@@ -158,7 +158,7 @@ const dbController = {
return null
},
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
if (err) { throw err }
// update user status
......
Markdown is supported
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