Skip to content
Permalink
Browse files
Merge pull request reisborw#69 from 5001CEM-1920SEPJAN/bugfix-special…
…Chars

fixed images not appearing on questions that started with special Chars
  • Loading branch information
townse41 committed Dec 4, 2019
2 parents 19a7f21 + be0c815 commit 7e450a3c93011370bfe460b4aa6121eafa1f9790
Showing 1 changed file with 1 addition and 1 deletion.
@@ -141,7 +141,7 @@ module.exports = class Question {
try{
await fs.copy(data.path, data.paths.filePath)
await fs.copy(data.path, data.paths.thumbPath)
const sql = `UPDATE questions SET image = '${data.imageName}' WHERE id = ${data.QuestionId}`
const sql = `UPDATE questions SET image = "${data.imageName}" WHERE id = ${data.QuestionId}`
await this.db.run(sql)
} catch(err) {
throw err

0 comments on commit 7e450a3

Please sign in to comment.