Skip to content

fixed images not appearing on questions that started with special Chars #69

Merged
merged 1 commit into from Dec 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/models/question.js
Expand Up @@ -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
Expand Down