Update API JS docs

This commit is contained in:
advplyr
2024-08-11 17:01:25 -05:00
parent 2472b86284
commit e53ac6566b
24 changed files with 390 additions and 175 deletions

View File

@@ -390,16 +390,6 @@ class Database {
return this.models.user.updateFromOld(oldUser)
}
removeUser(userId) {
if (!this.sequelize) return false
return this.models.user.removeById(userId)
}
upsertMediaProgress(oldMediaProgress) {
if (!this.sequelize) return false
return this.models.mediaProgress.upsertFromOld(oldMediaProgress)
}
updateBulkBooks(oldBooks) {
if (!this.sequelize) return false
return Promise.all(oldBooks.map((oldBook) => this.models.book.saveFromOld(oldBook)))