Remove old Author object & fix issue deleting empty authors

This commit is contained in:
advplyr
2024-08-31 13:27:48 -05:00
parent acc4bdbc5e
commit ba742563c2
13 changed files with 227 additions and 314 deletions

View File

@ -124,6 +124,13 @@ class CacheManager {
await this.ensureCachePaths()
}
/**
*
* @param {import('express').Response} res
* @param {import('../models/Author')} author
* @param {{ format?: string, width?: number, height?: number }} options
* @returns
*/
async handleAuthorCache(res, author, options = {}) {
const format = options.format || 'webp'
const width = options.width || 400