feat: default cover

This commit is contained in:
Matthieu Bessat 2020-08-04 18:00:57 +02:00
parent 19438d6a19
commit 5f8b100f9e

View file

@ -95,6 +95,11 @@ export default class PublicController {
} else if (lastPublished === undefined || lastPublished === null) {
return ErrorController.notFoundHandler()(req, res)
}
if (!Utils.isStrUsable(version, 'cover.location')) {
version.cover.location = "https://fva-condorcet.s3.fr-par.scw.cloud/rrQC0FP.png"
}
// if (lastPublished !== null) {
// lastPublished = lastPublished
// }