Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
User Account
Commits
01562733
Commit
01562733
authored
Jul 11, 2022
by
Rosanny Sihombing
Browse files
minor update
parent
898eab3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/controller/dbController.ts
View file @
01562733
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment