Fix createAuthor

This commit is contained in:
advplyr 2023-07-16 15:29:43 -05:00
parent d99b2c25e8
commit 01bf58ab97

View File

@ -447,7 +447,7 @@ class Database {
async createAuthor(oldAuthor) { async createAuthor(oldAuthor) {
if (!this.sequelize) return false if (!this.sequelize) return false
await this.models.createFromOld(oldAuthor) await this.models.author.createFromOld(oldAuthor)
this.authors.push(oldAuthor) this.authors.push(oldAuthor)
} }