Fix field name on import
This commit is contained in:
parent
dc21299e19
commit
6ae0d1b0ac
1 changed files with 2 additions and 2 deletions
|
@ -40,8 +40,8 @@ func uploadEpub(filename string, db *DB) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
book["filename"] = id
|
book["file"] = id
|
||||||
book["filenamesize"] = size
|
book["filesize"] = size
|
||||||
err = db.InsertBook(book)
|
err = db.InsertBook(book)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("Error storing metadata (", title, "): ", err)
|
log.Error("Error storing metadata (", title, "): ", err)
|
||||||
|
|
Reference in a new issue