Fix:Updating media progress not clearing cache #2392

This commit is contained in:
advplyr 2023-12-05 17:58:54 -06:00
parent 7c9c278cc4
commit 34156af403

View File

@ -13,7 +13,7 @@ class ApiCacheManager {
}
init(database = Database) {
let hooks = ['afterCreate', 'afterUpdate', 'afterDestroy', 'afterBulkCreate', 'afterBulkUpdate', 'afterBulkDestroy']
let hooks = ['afterCreate', 'afterUpdate', 'afterDestroy', 'afterBulkCreate', 'afterBulkUpdate', 'afterBulkDestroy', 'afterUpsert']
hooks.forEach(hook => database.sequelize.addHook(hook, (model) => this.clear(model, hook)))
}