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
1bb8aa73
Commit
1bb8aa73
authored
5 years ago
by
Rosanny Sihombing
Browse files
Options
Download
Email Patches
Plain Diff
handle error result
parent
86701a67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
routes/methods.js
+4
-3
routes/methods.js
with
4 additions
and
3 deletions
+4
-3
routes/methods.js
+
4
-
3
View file @
1bb8aa73
...
...
@@ -153,9 +153,10 @@ var methods = {
},
addProjectOverview
:
function
(
data
,
callback
)
{
dbconn
.
project
.
query
(
'
INSERT INTO project_overview SET ?
'
,
data
,
function
(
err
,
results
,
fields
){
if
(
err
)
throw
err
;
//console.log(results.insertId)
callback
(
results
.
insertId
,
err
);
if
(
err
)
{
console
.
error
(
err
);
}
callback
(
results
,
err
);
})
}
};
...
...
This diff is collapsed.
Click to expand it.
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