Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김동근
/
WhoAreYou
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
서주원
2018-12-05 03:23:39 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bfaf0ae153a6daf19b9c2872b8685cab5bd6ab59
bfaf0ae1
1 parent
8b4daf71
fix bug(single quote error in inserting rows)
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
api/card/addCards.js
api/card/addCards.js
View file @
bfaf0ae
...
...
@@ -28,10 +28,10 @@ exports.AddCards=(deckId,cards)=>{
if
(
cardEnUS
[
i
].
name
===
cardName
)
{
console
.
log
(
cardEnUS
[
i
].
dbfId
)
cardId
=
cardEnUS
[
i
].
dbfId
cardName
=
cardName
.
replace
(
'\''
,
'\'\''
)
break
}
}
connection
.
query
(
`insert into card (deckId,cardId,cardCost,cardName,cardNum) values (\'
${
deckId
}
\',\'
${
cardId
}
\',\'
${
cardCost
}
\',\'
${
cardName
}
\',\'
${
cardNum
}
\')`
,
(
err
,
results
,
fields
)
=>
{
//
if
(
err
)
throw
err
...
...
Please
register
or
login
to post a comment