diff --git a/src/controllers/PublicController.ts b/src/controllers/PublicController.ts index 319e991..48c1f44 100644 --- a/src/controllers/PublicController.ts +++ b/src/controllers/PublicController.ts @@ -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 // }