Fix MathJax value not sticking

This closes #28
This commit is contained in:
Matt Baer 2018-11-16 12:19:56 -05:00
parent 3595c8163c
commit a0f8a2df3b
1 changed files with 4 additions and 1 deletions

View File

@ -768,7 +768,10 @@ func (db *datastore) UpdateCollection(c *SubmittedCollection, alias string) erro
var rowsAffected int64
var changed bool
var res sql.Result
var err error
err := db.QueryRow("SELECT id FROM collections WHERE alias = ?", alias).Scan(&collID)
if err != nil {
log.Error("Failed selecting from collections: %v. Some things won't work.", err)
}
// Update MathJax value
if c.MathJax {