mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
SQL Insert fix
This commit is contained in:
parent
07ea2d0dab
commit
39cb92308d
1 changed files with 2 additions and 1 deletions
|
@ -305,7 +305,8 @@ function Insert(
|
||||||
.join(', ')
|
.join(', ')
|
||||||
|
|
||||||
const values = Object.keys(data)
|
const values = Object.keys(data)
|
||||||
.map((item) => {
|
.map((key) => {
|
||||||
|
const item = data[key]
|
||||||
if (typeof item === 'string') {
|
if (typeof item === 'string') {
|
||||||
return `'${item}'`
|
return `'${item}'`
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue